Jump to content
Search Community

Firefox css animation not working

Guilherme test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Why it dont works in firefox ?

 

TweenMax.from(logotop, 1, {delay:1,css:{'margin-left':'-1000px'},ease:Elastic.easeOut});

 

in IE 9 and Chrome works.

 

this library is amazing... i want to use =)

 

you can see here oigui.com

 

i tryed in a clean html and dont works too.

 

ty.

Link to comment
Share on other sites

It's easy to overlook this, but for proper browser compatibility using the CSS plugin you need to use the camelCase version of the CSS property. In this case you want to animate marginLeft, so:

TweenMax.from(logotop, 1, {delay:1,css:{marginLeft:'-1000px'},ease:Elastic.easeOut});

(From the CSSPlugin API):

Note: a common mistake is to forget to wrap css-related properties in a css object which is essential for specifying your intent. Remember, TweenLite/Max isn't just for tweening css properties. And always use camel case representations of the properties, so instead of "font-size", you'd use "fontSize".

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...