r/css • u/FrostingEffective699 • 5h ago
Help css linear scroll not working?
hi! i've been trying to implement a linear scroll in my top bar, but its not animating. https://yuri-uran.nekoweb.org anyone know if i've missed something simple?
0
Upvotes
•
u/CluelesssDev 4h ago
looking at your styles, you only have color, font-family and font-size applied to your #animated-text-strip div, so there's no hint of css animation?
•
u/ith3nate 1h ago
The id in your HTML is written id="#animated-text-strip", with the hash inside the quotes, so the #animated-text-strip rule in your stylesheet never matches that div. The hash only belongs in the CSS selector. Change the attribute to id="animated-text-strip" and the floatText animation should start running.
•
u/AutoModerator 5h ago
To help us assist you better with your CSS questions, please consider including a live link or a CodePen/JSFiddle demo. This context makes it much easier for us to understand your issue and provide accurate solutions.
While it's not mandatory, a little extra effort in sharing your code can lead to more effective responses and a richer Q&A experience for everyone. Thank you for contributing!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.