cubic-bezier icon indicating copy to clipboard operation
cubic-bezier copied to clipboard

Newton's method glitch

Open jaycetde opened this issue 11 years ago • 2 comments

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

jaycetde avatar May 06 '13 15:05 jaycetde

+1

aleclarson avatar Mar 04 '16 18:03 aleclarson

+1

SirEnri2001 avatar Apr 13 '23 06:04 SirEnri2001