2 ms·
Very nice looking landing page. May I ask how you make the scroll so smooth?
by Kiro 12y ago
Very nice looking landing page. May I ask how you make the scroll so smooth?
- RobertoGonzalez 12y agoWe ended up using SmoothScroll on Windows (https://gist.github.com/salipro4ever/35ba6d9e61cade99a0c2 https://gist.github.com/salipro4ever/35ba6d9e61cade99a0c2), which helps us demonstrate the effect a lot better on the project page. It captures the mousewheel event and adds some tweening to make it scroll smoothly. It does break easily if you have a non-standard mouse config, however, so I can't quite recommend the library unless there's a really good reason for it.