Jump to content
GreenSock

Jonny

Timelinelite on svg not working - jquery version is working

Recommended Posts

Hello,

 

I have started this as a new topic as it's changed slightly.

 

I am animating the opacity of an svg <g> layer.

I am trying to target the layer and animate that, but nothing happens.

The timeline seems to play because my onComplete callback is firing, but the tweens are not running it would appear.

 

However, if I try to do the exact same tween in jquery animate method, then animation happens. So I am led to believe it is an issue with greensock, or I have made an error in my code, but seeing as the jquery version works perfectly I am not sure this is true.

 

 

See the Pen zQXWVa?editors=1010 by JonnyPS (@JonnyPS) on CodePen

Link to comment
Share on other sites

Is this solved from your other thread?

 

The pen you listed is 404 so I'm not sure what's happening. 

 

Thanks.

  • Like 2
Link to comment
Share on other sites

Hi @PointCyes this is now resolved.

It was targeting the layer correctly and changing the opacity, but because I hadn't included cssPlugin it wasn't visually showing.

No errors are displayed when this happens either.

 

Essentially all i had to do was include the plugin.

 

thank you for your help.

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