cubic-bezier
cubic-bezier copied to clipboard
Newton's method glitch
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
+1
+1