+ 4
How can we use hover in animation
3 Réponses
+ 2
use : hover.
check my code
https://code.sololearn.com/WQXp1gVB0zSk/?ref=app
+ 1
if you click on it, it will be active
if you click anywhere else after that, it will be inactive
+ 1
<p>TESTING</p>
<style>
p:hover{
color:red;
font-size:20px;
}
</style>
Now whenever you click (touch device) or hover(moue) upon "TESTING" text , the Color of the text changes to rec and text size to 20px , if you remove moue from that text then text come to its original style