+ 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 ?

18th Oct 2017, 7:15 PM
NoxFly
NoxFly - avatar
4 ответов
+ 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
18th Oct 2017, 7:40 PM
NoxFly
NoxFly - avatar
+ 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
18th Oct 2017, 8:32 PM
Limitless
Limitless - avatar
+ 1
Reform please. I don't understand.
18th Oct 2017, 7:37 PM
Private [GER]
Private [GER] - avatar
0
Oh, okay.
18th Oct 2017, 7:41 PM
Private [GER]
Private [GER] - avatar