Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
thomasflad

[ScrollMagic] Pause DrawSVG while scrolling

Go to solution Solved by Ihatetomatoes,

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

Hi,

 

I hope it's ok to post here a question about ScrollMagic + GSAP, too. 

 

I want to pause a DrawSVG Animation on a certain point for a certain duration. I've done this so far: 

 

Now I have the problem that on the end of the duration of the pause the animation jumps because it doesn't resume on the last position. How can i tell ScrollMagic to "wait" and stretch the length of the animation for the amount of time?

 

Many thanks for your ideas! :)

 

 

See the Pen oXGdJM by thomasflad (@thomasflad) on CodePen

  • Like 1
Link to comment
Share on other sites

  • Solution

Hi Thomas, have you tried to split your SVG animation into two timelines or tweens and have two ScrollMagic scenes?

 

Each scene would then trigger and animate only half of your complete timeline eg:

 

1. Scene 1 would animate the SVG from 0 to 50%

2. Pause

3. Scene 2 would animate the SVG from 50% to 100%

 

You can define the length of the pause by setting a right offset to the Scene 2.

 

Hope that helps.

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