Jump to content
Search Community

No errors but still no animation

marc1311 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

Hey so I'm currently making an animated graph to show how often I skip a song on Spotify. All I'm trying to do right now is bring in "Spotify" however no animation plays despite chrome dev tools saying there is no error. Also, I commented out line 209 in my HTML because for some reason it cannot link my DrawSVGPlugin. If anyone can help with one or both of the problems I'd greatly appreciate it; thanks.

See the Pen RvpWNJ by Marc1311 (@Marc1311) on CodePen

Link to comment
Share on other sites

Hi @marc1311,

  Before I tell you why .. I want to say, "Don't worry ... we've all done this at some time."

 

Your id selector is missing "#".

 

This

 

tl.from("spotify", 1, {autoAlpha: 0, x:-20, ease:Bounce.easeOut});

 

Should be 

 

tl.from("#spotify", 1, {autoAlpha: 0, x:-20, ease:Bounce.easeOut});

 

 

I've also cleaned up your CodePen a bit. Javascript libraries should be called in with CodePen's Javascript settings and the HTML portion should only be what is *within* the <body>

 

See the Pen BMWoLE?editors=1010 by sgorneau (@sgorneau) on CodePen

 

Hope this helps!

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