Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
nattha

Pinned Section - Text Fade In & Out with ScrollTrigger

Recommended Posts

Does anyone know how to fade a text in and out again using the ScrollTrigger Plugin? Like the Apple Airpods Pro Product Page: https://www.apple.com/airpods-pro/

 

On Scroll the Text slides up and simultaneously fades in. If we scroll further the text fades out und the next text fades in.

I've found a similar pen but the section only fades out.

 

Thank you for your help!

See the Pen GQgWrY by Sahil89 (@Sahil89) on CodePen

Link to comment
Share on other sites

Hey Nattha. Sure, that's easy. Just make the background pinned or fixed and then have a tween/timeline with ScrollTrigger that animates the text's position and opacity. Something like this:

See the Pen eYJdJKN?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 2
Link to comment
Share on other sites

Works perfectly. Thanks for the quick response!

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