Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
apply a class on based of scroll using only css - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
5 replies
get out...!
apply a class on based of scroll using only css
I have navbar with a width of 800px
, when scroll happen I want that navbar take full width of the viewport
.
This task have to done using only css
.
is that possible
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How change css class on scroll?
KP-C
Kevin Powell - Community / front-end
3y ago
CSS Scroll Animation
KP-C
Kevin Powell - Community / front-end
3y ago
CSS transitions apply on page load
KP-C
Kevin Powell - Community / front-end
3y ago