A first experience with HTML, CSS, and JavaScript
Learned many things, like:
- don't use .innerHTML on elements
- Object.assign() to change properties and such
- Try to avoid changing/creating inline css via javascript, instead change the element's class or data!
- use
await new Promise(r => setTimeout(r, ms))
to delay actions by an amount- set ms to 0 to delay by a tick so animating of an element is shown