+ 1

How can I make the animation occur only when the user clicks the blink button?

https://code.sololearn.com/WPXKz1IAUcxV/?ref=app

29th Jun 2018, 1:17 PM
B.D
B.D - avatar
3 Antworten
+ 3
Just make a css blink class and add blink class event function: Check out the code https://code.sololearn.com/WreQ9ipYinhP/?ref=app
29th Jun 2018, 1:59 PM
Calviղ
Calviղ - avatar
+ 2
thank you
29th Jun 2018, 2:06 PM
B.D
B.D - avatar
+ 1
You will probably have to do it in javascript using an event listener: window.addEventListener("click", function(event) { // change cell color here })
29th Jun 2018, 1:29 PM
Zeke Williams
Zeke Williams - avatar