Jump to content
Search Community

Bind a fade in and out to scrolling

liquilife test
Moderator Tag

Recommended Posts

I am trying to sort through a simple way to fade in and out a couple of elements during a small trigger area. I've gotten far enough to get the desired elements to display none or block, and I could do some CSS trickery. But I'd rather my two elements fade in and out with the speed of the scrolling as opposed to just simply show and hide. 

 

The elements are the title on the left and button on the right.

 

I'm sure timelines is the way to go, but I can't seem to set up a timeline without breaking my setup. Thank you for any help!

See the Pen NWXLQpv by liquilife (@liquilife) 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...