KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there any way to do the opposite of :hover using only CSS? As in: if :hover is on Mouse Enter , is there a CSS equivalent to on Mouse Leave ? Example: I have a HTML menu using list items. When I hover one of the items, there is a CSS color animation from #999 to black . How can I create the opposite effect when the mouse leaves the item area, with an animation from black to #999 ? jsFiddle (Have in mind that I do not wish to answer only this example, but the entire "opposite of :hover " issue.)
Tags (comma-separated)
Save Edits
Cancel