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...
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...
Share Posted April 17, 2022 You could approach it like this? See the Pen XWVoWBp?editors=1011 by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
Author Share Posted May 4, 2022 Thank you! 1 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