Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAnuj Sachdeva
13,034 PointsCan I make the hover effects stick even after "unhovering"
I was just wondering if there's any way to make the hover effects stick even after you've stopped hovering over an element. I have a couple of ideas where I could use this functionality.
1 Answer
Mike Wagner
23,559 PointsI don't believe there's any "proper" way to do it without some form of scripting to change CSS dynamically. Though, I could be wrong. I've seen it spoofed in some ways before but, to be honest, using a few lines of JavaScript would be a better solution and more browser-friendly, I think.