Jump to content
Search Community

ScrollTrigger Pin - Fade in and out

HumbleB test
Moderator Tag

Recommended Posts

I would like 'Headinggg" and "1" to be visible at the start of the pinning of  ".head" and as you scroll the other headings fade in and out into view. 

Right now, It's working except for "Headinggg" isn't fading out even though '1' is. When I changed it  opacity: i === 0 ? 0 : 1 it create a big backspace between "heading 2" and "headingg 1".  How would I fix this?

See the Pen MWrZWjW by HumbleB (@HumbleB) on CodePen

Link to comment
Share on other sites

  • 3 weeks later...
  • 11 months later...
1 hour ago, Jenny said:

Hi - this seems to break on screen refresh? Any suggestions?

@Jenny can you please be more specific? Maybe start a new thread and provide a minimal demo that clearly illustrates the issue and explain the steps involved in reproducing it. I looked at Cassie's latest version and it seemed to work fine, so I must be missing something. 

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