Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Faaiz

TweenMax and TweenLite not working in Firefox

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

See the Pen VGEYeZ by goprime (@goprime) on CodePen

 

Hi, so tweenMax and tweenLite seem to be working fine in all browsers, but not in firefox, I thought Firefox supported it, right? Any help would be greatly appreciated, thanks in advance!

See the Pen VGEYeZ by goprime (@goprime) on CodePen

Link to comment
Share on other sites

Absolutely, GSAP supports pretty much every browser. The problem here is that "width" is an attribute for SVG elements in this particular case, not a CSS property, so you simply have to tell it to target the attribute like:

 

attr:{width:0}

 

Here's a fork with the proper code, and I simplified a lot of your other code too: 

See the Pen 80f92f2d673361c3481caad3289c5382 by GreenSock (@GreenSock) on CodePen

 

Better?

  • Like 4
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.
×