Jump to content
Search Community

Reveal / change text colour on scroll

Josh Rogers test
Moderator Tag

Recommended Posts

1028429605_Screenshot2021-11-25at15_02.20-min.thumb.png.a39961acd0bf821e723375d27158a800.png

 

Hey guys, 

Hopefully someone can help here

 

I'm trying to recreate the effect that Apple have achieved on their 'Pro to the Max' text where as the background scrolls up the text colour is changed. It almost seems as though it's being revealed?

Page can be found below:
https://www.apple.com/uk/macbook-pro-14-and-16/

 

Is there any way I can achieve this with GSAP and Scroll Trigger

 

Thank you in advance

Link to comment
Share on other sites

  • 1 year later...

Hi,

 

This seems more related with the easing function than something else. This seems to work like you intend:

gsap.to(".mask", {
  duration: 2,
  scale: 1,
  ease: "none",
  scrollTrigger: {
    trigger: "#demo",
    markers: true,
    start: 0,
    end: "+=100%",
    scrub: true,
    pin: true
  }
});

Hopefully this helps. Let us know if you have more questions.

Happy Tweening!

Link to comment
Share on other sites

  • 7 months later...

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