Jump to content
Search Community

New to Gsap

codi 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

I have been looking at videos for cc animate, but I am unsure if I need animate to accomplish this..

 

I have a hero image full screen and I am trying to have some text display. not so much animated but as follows

 

 

<div>

<span>1</span>

<span>2</span>

<span>3</span>

<span>4</span>

<span>5</span>

</div>

 

and it will just keep switching to the next text. it will only show one word at a time.

 

where would be a good place to start?

Link to comment
Share on other sites

I would think a couple of staggerTo()s would work fine for that. If you wanted a nice fade between each one, you could do something like this:

tl.staggerFrom(yourElement, 1, {autoAlpha:0}, 1);
tl.staggerTo(yourElement, 1, {autoAlpha:0}, 1, 1);

More stagger information:

 

https://greensock.com/docs/#/HTML5/Animation/TweenMax/staggerTo/

 

A CodePen is always best if you want more detailed answers.

 
Happy tweening.
:)
  • Like 1
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...