+ 1

How to use :hover and rotate ?

Hi guys I'm learning HTML and CSS , and I cannot figure out how to use rotate and :hover to rotate an element when hovering on it . Can someone help ?

2nd Dec 2020, 3:23 PM
Abderrahim Rhitrif
Abderrahim Rhitrif - avatar
2 ответов
+ 6
https://code.sololearn.com/WVAZR81Lu8cR/?ref=app Here i made a little example, you can simply use :hover { transform: rotate (deg) } Hope I helped you 😄 Happy coding 🙂
2nd Dec 2020, 3:58 PM
Matthew
Matthew - avatar
+ 1
ㅁ Glira⁷ ㅁ tnx man , you helped me alot.
2nd Dec 2020, 4:18 PM
Abderrahim Rhitrif
Abderrahim Rhitrif - avatar