Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox 16 #7

Open
ghost opened this issue Oct 15, 2012 · 8 comments
Open

Firefox 16 #7

ghost opened this issue Oct 15, 2012 · 8 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2012

rotate issue

Can sombody proof

$('#img2').animate({rotate: '+=90deg'}, 900, function() {

});

flop like crazzy in Firefox 16

@freedompower
Copy link

The plugin produces weird results for me too with Firefox 16.

@TivoCorrmat
Copy link

The CSS value returned in javascript using this plugin on the line :
$(this).css('transform')

is now in "matrix" format for Firefox 16. It was in "deg" format before.

So it now creates a bug when the code attemps to replace the value :
$(this).css('transform',style.replace(/none|rotate([^)]*)/,'')+'rotate('+m[1]+rotateUnits+')');

@ghost
Copy link
Author

ghost commented Oct 18, 2012

Anyone know how to fix this?

@zachstronaut
Copy link
Owner

You could either change the code to track the rotation / scaling units in its own variable rather than fetching and parsing the value of css('transform') or you could add support for converting the matrix back to rotation/scale info:

http://css-tricks.com/get-value-of-css-rotation-through-javascript/
http://stackoverflow.com/questions/8270612/get-element-moz-transformrotate-value-in-jquery
http://stackoverflow.com/questions/12897291/csstransform-return-wrong-value-rotate

Feel free to fork. I can't get to this fix right now.

@Adeher
Copy link

Adeher commented Oct 19, 2012

Firefox 16 broke the animated transformations with this plugin indeed. On my project the scaled transform is applied twice, once with scale() and once with matrix().
I hope somebody will be able to fix this.
An alternative script can help others https://github.com/rstacruz/jquery.transit
but sadly it doesn't offer the "step" function, which I need.

@travisjbeck
Copy link

I fixed the scaling portion of this problem, check my pull request. This should help all those using the quicksand plugin with the latest versions of jQuery in Firefox.

@zachstronaut
Copy link
Owner

I have just pushed new code that should support Firefox 16. Let me know if you have further problems.

@Adeher
Copy link

Adeher commented Oct 24, 2012

looks like it works again now
Thank you very much Zach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants