+ 2
When you want to control more things by one button then for it will be needed saving of state. For example in this way:
https://code.sololearn.com/WQ9Emp5847lw/?ref=app
+ 3
This can you set in css part.
+ 3
Happy coding!
+ 1
The example is working. This is only problem of playground editor.
You can check the code again. I have copied the js part into html.
Now should it also work in your web editor.