bitovi / jquerypp

jQuery's missing utils and special events
http://jquerypp.com
MIT License
1.21k stars 160 forks source link

Animation chaining error #37

Closed xpy closed 12 years ago

xpy commented 12 years ago

When chaining animations ex. $(foo).animate({"width":1px},100,"ease-in").animate({"width":2px},100,"ease-in"). animate tries to call the easing property as a callback...

daffl commented 12 years ago

There seems to be still something wrong for the check if it should use the original jQuery.animate. CSS animations can't do custom easing ('ease-in') so it should use the old $().animate(). I will have a look at it.

rjgotten commented 12 years ago

Not true, they can do custom easing just fine:

http://www.w3.org/TR/css3-animations/#animation-timing-function-property http://www.w3.org/TR/css3-transitions/#transition-timing-function-property

Ofcourse, you can't create CSS equivalents for user-defined easing functions, but you could atleast handle the series of 'known' easing types that come with jQuery and jQuery UI ,,,