I am updating a website and I want to implement momentum scrolling using this library https://www.cssscript.com/demo/smooth-momentum-scrolling-butter/ or code
But they have the same
main.style.transform = "translate3d(-${dx}px, -${dy}px, 0px)";
It always messing up my page and it is annoying and I don't wanna speak about the mobile version. Is there any way just to put code inside and do the job, something like plug and play?
Here is a site for reference https://debukstudio.com/