Jump to content
Search Community

Hot to fill background color into text word

renny test
Moderator Tag

Recommended Posts

@renny to bad you didn't take a swing at coding it your self. I find the best way to learn is to just build it and even if your code doesn't work share it, this way others can give you pointers on why your thought process wouldn't work.

 

What I did is copy the text and placed them underneath each other (I have add SCSS to your codepen, because I find that easier to write) and then add a clipPath to the fill element. Which is then animated from the bottom to the top. I'll leave adding it to ScrollTrigger to you, but be sure to post back if you have any trouble, but I'll then encourage you to include the none working code. 

 

See the Pen PoRmwbW?editors=0110 by mvaneijgen (@mvaneijgen) on CodePen

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