When I click on a button that I have given, I want the button to activate the animation, but I have two animations when I add both, I get an error, how can I solve it :)
I'm doing this animation for dark mode transition effect
#drk:active .turtle {
animation: drag 4s linear;
-webkit-animation: drag 4s linear alternate; /* Chrome and Safari */
height: 100%;
position: fixed;
z-index: 50;
top:0px;
left: 0px;
}
#drk:active . {
animation: drag 4s linear;
-webkit-animation: drag 4s linear alternate; /* Chrome and Safari */
height: 100%;
position: fixed;
z-index: 50;
top:0px;
left: 0px;
}
question from:
https://stackoverflow.com/questions/65841168/can-i-run-animation-with-css-button 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…