Why is pseudoclass ":hover" dont work there | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is pseudoclass ":hover" dont work there

//html <!-- header start --> <div id="header" class="section"> <img alt="" class="img-circle" src="https://code.sololearn.com/Icons/Avatars/0.jpg"> <p>Danila Ptuha</p> </div> <!-- header end --> .img-circle { border: 3px solid white; border-radius: 50%; } //css img:hover { animation: circle 3s linear 2s infinite;

7th Jun 2019, 7:37 PM
Danila Ptuha
Danila Ptuha - avatar
1 Answer
+ 3
You need to write @keyframes circle { from {...} to {...} } in order animation circle could work. And also don't forget to add prefix vendor browser support
8th Jun 2019, 12:41 AM
Calviղ
Calviղ - avatar