+ 6
[Resolved] Jquery unactive :active
A div have the property : :active { background-color: red; } I want, 3 sec after the user click on this div, reset automaticly the :active how can I do ?
4 Réponses
+ 7
html:
<div></div>
css:
div {
width: 50px;
height: 50px;
background-color: blue;
}
div:active {
background-color: red;
}
when the user click on the div, his bgcolor become red. I want, when it does this :
3 secondes after, the div:active{ } STOP and so the bgcolor of the div re-become blue
+ 5
Here is something that might help you:
https://code.sololearn.com/W4LYny6SxZ4t/?ref=app
I understand that it's not exactly what you want, but I hope that it could help you a bit
+ 1
Reform please. I don't understand.
0
Oh, okay.