Jump to content
Search Community

DrawSVG + clip hello world

francis789 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

Welcome to the forums, @francis789. I noticed several problems:

  1. You weren't loading DrawSVGPlugin at all (the codepen-specific one is at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/DrawSVGPlugin.min.js)
  2. You had syntax errors, like you called timeline.on() but I think you meant .to(). You used several set() calls, but with invalid parameters (looks like you put a duration parameter when there's no such thing)
  3. You were re-defining a bunch of TimelineMax instances, but adding animations to only one...and using the same values so there wouldn't be any animation after the first one. 
  4. One of the elements you were animating had visibility:hidden in the CSS, so you'd never see that.

Here's a super-simple fork: 

See the Pen 125af6f9e09cc32fe0c21e4b9b653928 by GreenSock (@GreenSock) on CodePen

 

 

Does that help? 

  • 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...