Open drewbaker opened 8 years ago
Thanks, I've added this to the latest version of Scrollify.
Cool! You should make a note in the readme that it supports Velocity.
Since jquery3 uses requestAnimationFrame for animations, is velocity('scroll') still more efficient than $.animate('scrollTop') ? If they are equal now, i think this should not be implimented
@drewbaker , @lukehaas
Hello! Frist I would like to thank Lukehaas for the useful plugin he created! Also, if you don´t mind taking a look at the way I used the plugin, to see if I could do it better, I would appreciate it. link: http://tiagoandrade.eu/alumi-2/#
Now, I wanted to know how can I make sure if the plugin is using velocity. j's?
I patched this to work with Velocity for the scroll animations. Makes it more smoother!
Replace these lines: https://github.com/lukehaas/Scrollify/blob/master/jquery.scrollify.js#L501-L505
And then replace these lines: https://github.com/lukehaas/Scrollify/blob/master/jquery.scrollify.js#L127-L129