louisremi / jquery.transform.js

jQuery cssHooks adding a cross browser transform property to $.fn.css() and $.fn.animate()
http://louisremi.github.com/jquery.transform.js/index.html
618 stars 172 forks source link

Scale animation failing on IE9 #18

Open rconnamacher opened 13 years ago

rconnamacher commented 13 years ago

On IE9, the following works as expected:

$(elem).css({transform: "scale(0.5, 1)"})

But, the following produces no results:

$(elem).animate({transform: "scale(0.5, 1)"})

(This works in Firefox, Safari, and Chrome, just not IE 9.)

I've tested this with both JQuery 1.6.2 and JQuery 1.7.

rconnamacher commented 13 years ago

And as this is my first post here, let me litter it with the following fluff:

Thanks for making this cool plugin! I had created a prototype isometric 3D flip effect using 2D transformation and CSS transitions on WebKit, but then switched to this plugin for the better cross-browser support. It greatly simplified my code. Performance is obviously lower than the browser-native animations I originally used, but it's still good enough. Now if we can sort out what's going on here, I'll get that cross-browser support. :)

louisremi commented 12 years ago

Hey richcon,

Sorry for not answering earlier. I don't have IE9 so I'm unable to reproduce the bug you're seeing. Have you, by any chance, more info on the matter?

Thank you.

louisremi commented 12 years ago

I'm interested in knowing if there are problems with rotate, skew and translate animations in IE9 as well, and if the problem is still present in the last preview of IE10. Thanks

stephen-hw commented 12 years ago

I'm having the same issue. Here is the fiddle I used to demonstrate it in ie9. http://jsfiddle.net/24CG2/

louisremi commented 12 years ago

Hi Stephen,

Can I ask you to confirm that you haven't such problems with rotate and skew in IE9, and can you check whether the problem is still present in the latest preview of IE10?

cashlo commented 12 years ago

Hello, I just tested that rotate and skew work in IE9, and scaleX, scaleY,scale all won't work

louisremi commented 12 years ago

Hi,

I had access to IE9 today and here are my first findings:

You can use http://jsfiddle.net to create a test case and load jquery.transform2d.js using the "manage ressources" menu by entering this address: http://louisremi.github.com/jquery.transform.js/jquery.transform2d.js

Thank you in advance

cashlo commented 12 years ago

Thanks for the update! I have test again with the js file in the link, and it works well, the issue with ie9 is gone. Then I download jquery.transform2d.js to my server from master branch scale stop working again. The issue is with the transform2d.js file in the master branch, which is different from the one from http://louisremi.github.com/jquery.transform.js/jquery.transform2d.js

Cash

cashlo commented 12 years ago

by the way, there's another issue when scale to 0 with the version from http://louisremi.github.com/jquery.transform.js/jquery.transform2d.js

test case here http://jsfiddle.net/5FAXp/5/

jquery.transform2d.js:408 Uncaught Error: matrix is singular

Cash

louisremi commented 12 years ago

@cashlo Finally some useful info in that bug report! Thanks, I'll pursue my investigations asap.

BMCouto commented 12 years ago

I'm having the same error here...

louisremi commented 12 years ago

Hey @cashlo,

The latest version of jquery.transform2d.js I just pushed includes a fix for the "matrix is singular" error.

Thanks for your patience

louisremi commented 12 years ago

Hi, I believe this problem has just been fixed by @Clorr

BMCouto commented 12 years ago

Almost... I can scale TO 0 but not FROM 0. My workaround at the moment is scaling to 0.1 and fading it out.

louisremi commented 12 years ago

Alright, reopening then.