heygrady / transform

jQuery 2d transformation plugin
437 stars 87 forks source link

Can't animate skew or translate in jQuery 1.8. #41

Open rconnamacher opened 12 years ago

rconnamacher commented 12 years ago

In jQuery 1.8, animation of skew and translate are broken. (Animation of scale seems to work, however.)

Setting by $(selector).css({skewY: '10deg'}) works, but animating by $(selector).animate({skewY: '10deg'}) causes the following error:

jquery-1.8.2.js:583 TypeError: 'undefined' is not an object (evaluating 'obj.length')

This appears to then kill the animation queue, as subsequent animations to that element don't fire.

jsFiddle reduced case of broken skew animation:

http://jsfiddle.net/richcon/UkAfD/

rconnamacher commented 12 years ago

By the way, I tried manually applying the patch from issue #40, "Plugin breaks in jQuery 1.8+, simple fix", and it didn't effect this issue.

yuxhuang commented 11 years ago

I added jQuery 1.8 support in a pull request. You can your example here:

http://jsfiddle.net/zhMyg/1/