GeorgeErshov Posted December 2, 2020 Share Posted December 2, 2020 Hello, everyone. Please tell me what I am doing wrong. I want to achieve an effect like in this example: See the Pen xxVLwzJ by mikeK (@mikeK) on CodePen Only with locomotive scroll. Here is my demonstration. Where did I make a mistake? My sections do not change color. See the Pen bGeWNOE by GeorgeDesign2020 (@GeorgeDesign2020) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted December 2, 2020 Share Posted December 2, 2020 Look in the console - it shows you the issue: color is not defined. Maybe you meant sectionContent? 1 Link to comment Share on other sites More sharing options...
GeorgeErshov Posted December 2, 2020 Author Share Posted December 2, 2020 you're probably right... I changed it to color, changed not much the name of the variable and everything works. The only thing I do not understand is why gray appears. It is only visible for the first time when you open a project. Look, please, what can you say? between section one and section two Link to comment Share on other sites More sharing options...
ZachSaucier Posted December 2, 2020 Share Posted December 2, 2020 Your background doesn't have an initial color so it uses a default of #000 as the start point. Fix it by setting the initial color. 1 Link to comment Share on other sites More sharing options...
GeorgeErshov Posted December 3, 2020 Author Share Posted December 3, 2020 Thank you🙂 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