+ 7

A question about an animation

I have made a signal as follows : https://code.sololearn.com/WPR1jq1oWqdQ/?ref=app I want to make the first circle red, second circle yellow, and third circle green after someone clicks the green part. This should happen one by one, I.e., first red, second yellow and so on. Please type the code and tell me the logic behind it. Thanks!😊

21st Jun 2018, 2:42 PM
Rahul Hemdev
Rahul Hemdev - avatar
5 Respostas
21st Jun 2018, 4:04 PM
Femi
Femi - avatar
+ 5
Thanks! Same to you!👍
22nd Jun 2018, 4:17 PM
Rahul Hemdev
Rahul Hemdev - avatar
+ 4
https://www.sololearn.com/learn/HTML/2213/ here is all the logic to apply yourself! 😊
21st Jun 2018, 3:43 PM
Andre Daniel
Andre Daniel - avatar
+ 4
Thanks guys but I want that when I click a button, the signal changes to red, then yellow, and then green. So we need to make an extra button. We also need to write some code and I don't know what code to write. Can you help please?
22nd Jun 2018, 1:36 AM
Rahul Hemdev
Rahul Hemdev - avatar
+ 3
The html course teaches you how to make a button. You should consider it, and congratulations for completion of the javascript course!
22nd Jun 2018, 1:37 AM
Andre Daniel
Andre Daniel - avatar