This demo doesn't use a single line of JS code to respond to the arrow keys. Movement of the player is handled 100% by the upcoming `focusgroup` HTML attribute! Focusgroup was definitely *not* made for this 😅 But, so cool to have this out of the box on the web. More ➡️ open-ui.org/components/s...
Post
Found a trick that works! - Draw dot with background in cell - Set animation to remove dot, but set play-state:paused, and fill:forwards - On focus, play-state:running That does the trick. I was expecting the animation to revert back to its initial state, but no. It preserves its state.
0 reposts2 likes
No replies yet.