Jump to content
Search Community

How to achieve the svg replacement effect by using stagger.

GM_sql test
Moderator Tag

Recommended Posts

Hi, I have a very simple animation and I need to apply the below criteria to get the the replacement effect:
1) after each animation of a single "box_info" item I need to pause the stage, say 1s,
2) after each animation of a single "box_info" item I need to restore it's style: opacity to 0.

Is it possible to apply stagger, and how ?
 

const play_intro = gsap.timeline({paused: false, repeat: -1});
play_intro.from(".box_info", {autoAlpha: 0, stagger: 1, onComplete: console.log("end")})
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...