Jump to content
GreenSock

markmarkmark

Scrollmagic Gsap DrawSVG repeat on multiple sections

Recommended Posts

Hello, i'm having a problem running he same draw-svg tween on multiple elements on scroll.

 

Essentially, im trying to run a draw-svg tween every time you scroll past a section. Hope someone can help me. I'm referencing this codepen example

See the Pen dc3075ce6ec6fc040138869804557cc3 by ihatetomatoes (@ihatetomatoes) on CodePen

 

Here is my sketch. Cant seem to get draw-svg to work using the .each method

See the Pen dgzJae by markmarkmark (@markmarkmark) on CodePen

 

See the Pen dgzJae by markmarkmark (@markmarkmark) on CodePen

Link to comment
Share on other sites

You are targeting `#line` in your .each, and you only have one ID of 'line'. You should be using a class in this case if you want to be semantically correct.

 

See updated pen:

See the Pen MPvQVE by elegantseagulls (@elegantseagulls) on CodePen

 

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