I made this with DOM events and CSS transitions and I'm really struggling to figure out how to make something like this with canvas. I want to be able to have touch events and eventually play sounds.
I was looking at phaser.js and it seems promising, but creating event handlers on shapes isn't built in.
It seems like the idea is to draw a bunch of rectangles, listen to touch and click events on the entire canvas, then figure out which corresponding rectangle to animate... but I'm lost just thinking about it.
So easy with DOM, so difficult with canvas? All help greatly appreciated.