arian / cubic-bezier

A small cubic bézier timing function
78 stars 8 forks source link

Newton's method glitch #1

Open jaycetde opened 11 years ago

jaycetde commented 11 years ago

I noticed glitching when using this to help provide a fallback to CSS3 animations:

var easeout = bezier(0, 0, 0.58, 1, 0.0005);

easeout(0.8955499999996391); // 0.9814755484179624 correct value easeout(0.8963999999999942); // 1.7324613225790264 Way off

Commenting out the Newton's method section of code resulted in expected values:

easeout(0.8955499999996391); // 0.9814755484179624 same easeout(0.8963999999999942); // 0.9817673786358452 expected

aleclarson commented 8 years ago

+1

SirEnri2001 commented 1 year ago

+1