perfect-scrollbar
perfect-scrollbar copied to clipboard
This code not work "Module is not defined error"
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/perfect-scrollbar@1/css/perfect-scrollbar.min.css"> <script src="https://cdn.jsdelivr.net/npm/perfect-scrollbar@1/dist/perfect-scrollbar.common.min.js"></script> <style> const ps = new PerfectScrollbar(document.body, { wheelSpeed: 2, wheelPropagation: true, minScrollbarLength: 20 }); </style>