I want to create a hover effect for an element but want the pre-hover CSS for the element to be the same as before, when hovering out again. So, I don’t want to inadvertantly override prior styles when hovering out of the element again. In other words – an easy way to memoize the css state of an element and to restore that state later.
Ideas?
just create a new css class. and on hovering, use
addClass(_thatclass_)and when hovering out useremoveClass(_thatclass_)