Jump to content
Search Community

Show word after word without transition

Black Ducas test
Moderator Tag

Recommended Posts

Hi,

 

You have to setup the leave part using roughly the same configuration with stagger:

let tl = gsap.timeline({
  repeat: -1,
  repeatDelay: gapTime,
});
tl.set(boomWords.words, {
  autoAlpha: 1,
  stagger: gapTime
})
.set(boomWords.words, {
  autoAlpha: 0,
  stagger: gapTime
}, gapTime);

 

Finally I'd recommend you to watch these videos @Carl made on the subject:

 

 

Hopefully this helps.

Happy Tweening!

  • Like 1
Link to comment
Share on other sites

Yeah! It helped a lot.

What means the last gapTime

.set(boomWords.words, {
  autoAlpha: 0,
  stagger: gapTime
}, gapTime); // <====THIS

What if I had to add another animation after? Like this

 

// Previous code, then:
tl.set('.last-boom-word', {
  autoAlpha: 1,
  scale: 1.2,
  repeat: 3,
})

It doesn't start. Here too I don't want any transition (if I use .to in place of .set it works)

Link to comment
Share on other sites

Ha, I think @Rodrigo ment to sent you two videos, but by mistake pasted the same video twice. And the second video has all the goodies! Check it out here below.

 

 

Here is a fork of your pen with the changes from @Carl's video. I've also changed your .set() tweens to a .to() with an ease of steps(1). (see more eases here https://greensock.com/docs/v3/Eases) I feel .to() is more flexible if you want to change the animation in the future and a .set() has an other use case in my opinion, but if it works it works. I just wanted to show you an other way. Hope it helps and happy tweening! 

 

See the Pen bGQQVxb?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

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