Giter Site home page Giter Site logo

Comments (8)

freedompower avatar freedompower commented on June 9, 2024

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

from jquery-animate-css-rotate-scale.

TivoCorrmat avatar TivoCorrmat commented on June 9, 2024

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+')');

from jquery-animate-css-rotate-scale.

 avatar commented on June 9, 2024

Anyone know how to fix this?

from jquery-animate-css-rotate-scale.

zachstronaut avatar zachstronaut commented on June 9, 2024

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.

from jquery-animate-css-rotate-scale.

Adeher avatar Adeher commented on June 9, 2024

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.

from jquery-animate-css-rotate-scale.

travisjbeck avatar travisjbeck commented on June 9, 2024

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.

from jquery-animate-css-rotate-scale.

zachstronaut avatar zachstronaut commented on June 9, 2024

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

from jquery-animate-css-rotate-scale.

Adeher avatar Adeher commented on June 9, 2024

looks like it works again now
Thank you very much Zach

from jquery-animate-css-rotate-scale.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.