Jump to content
Search Community

Timelinelite on svg not working - jquery version is working

Jonny 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

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

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.
×
×
  • Create New...