DeveloperMan Posted June 17, 2024 Posted June 17, 2024 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 Thanks. See the Pen NWMxRvM by GreenSock (@GreenSock) on CodePen.
Rodrigo Posted June 18, 2024 Posted June 18, 2024 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now