Home › Forums › JavaScript › Smooth mousewheel page scrolling plugin › Reply To: Smooth mousewheel page scrolling plugin
June 27, 2015 at 12:48 am
#204261
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.