Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Smooth mousewheel page scrolling plugin Reply To: Smooth mousewheel page scrolling plugin

#204261
Shikkediel
Participant

Okay, swing (or curve here) wasn’t quite correct. It should be :

0.5*c-c*Math.cos(t/d*Math.PI)/2+b

Which confirms a long suspected fact… it’s the same as easeInOutSine :

-c/2*(Math.cos(t/d*Math.PI)-1)+b

Just written a tad differently.