Jump to content
Search Community

Recreate GSAP Homepage animation - Reveal text left to right

DeveloperMan test
Moderator Tag

Recommended Posts

I am hoping to recreate the text reveal section on the GSAP homepage, but have had no luck getting started.


How would I go about recreating the attached section? I have been trying with ScrollTrigger and Panels. Specifically I am trying get to the end of a long sentence, then scroll down a pane.


The closet demo I have found is this: https://codepen.io/GreenSock/details/NWMxRvM



Screenshot 2024-06-17 at 21.34.35.png

See the Pen NWMxRvM by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

Hi @DeveloperMan and welcome to the GSAP Forums!


That is mostly a one-off horizontal animation (Timeline) with a couple of elements being controlled by a container animation, the flair (asterisk) below the text and the easing curve above the text.


I would recommend you to get the horizontal animation working as you expect first and then add ScrollTrigger to the mix. Keep in mind that ScrollTrigger just controls the progress of an animation based on the start and end points you pass in the config object, nothing more, so it's always a great idea to have a working animation first (especially a more complex one) before adding ScrollTrigger to the mix.


If you keep having issues, please include a minimal demo using this starter codepen we have that loads all the GSAP Plugins:

See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen


Happy Tweening!

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