HumbleB Posted April 17, 2022 Share Posted April 17, 2022 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 More sharing options...
Cassie Posted April 17, 2022 Share Posted April 17, 2022 Heya! It's not actually fading out. You just have a background color on the number divs - see See the Pen QWazWBW?editors=0110 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted April 17, 2022 Share Posted April 17, 2022 You could approach it like this? See the Pen XWVoWBp?editors=1011 by GreenSock (@GreenSock) on CodePen 4 Link to comment Share on other sites More sharing options...
HumbleB Posted May 4, 2022 Author Share Posted May 4, 2022 Thank you! 1 Link to comment Share on other sites More sharing options...
Jenny Posted April 23, 2023 Share Posted April 23, 2023 Hi - this seems to break on screen refresh? Any suggestions? Link to comment Share on other sites More sharing options...
GreenSock Posted April 24, 2023 Share Posted April 24, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now