The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to make an image spin when mouse is over it
Hi, I would like to know a way to make an image spin only when the mouse is over it. For example, in this site the gear image spins just like I wish, the only diference is that i need that image spins only when mouse is over.
Create the keyframe animation as usual but only apply it on :hover.
:hover
https://css-tricks.com/almanac/properties/a/animation/
Yeah, use the :hover along with some kind of translate() / transform() animation.