Wobble Buttons made with HTML in Canvas
@wesbos444K followers
54,565 views
34 Comments
Comments from the original post on X (Twitter)

@ajrgd
wild… so everything's easy and fast because there's no reflow/rendering step — it's all paint?
6 likes

@wesbos
The canvas is updated when the DOM element is - so I assume it still goes through layout + paint. I do think it is a bit more taxing to draw to canvas, but it does seem to be pretty responsive!
1 like

@ajrgd
but maybe the layout step is confined to each canvas's bounds, not the whole page, so can be very performant and parallelised (hello GPUs)
2 likes

@wesbos
Yeah I'm not 100% sure how it works, but the browser already knows which parts of the screen to paint. So requesting to paint to canvas isn't too taxing.
1 like

@stevemcniven
> Wobble Button That was my nickname in highschool
1 like

@peterfox
This is going to lead to some really dumb and ugly UI choices. Like early 2000s ugly UI choices 😂
1 like

@Danmoreng
Remind me in ~3 years, when all major browsers have this in stable release...
1 like

@wesbos
k - its a sunday but Ill work the weekend for ya
13 likes

@nickshanks_
Jelly!
1 like

@woladiX
The no-reflow angle is what makes this interesting for design systems. Canvas-rendered components bypass the layout engine entirely — which means you can encode motion constraints directly in the component logic rather than fighting CSS specificity. Wild approach.
1 like

@Cowboycodey
Jiggly
1 like

@cnakazawa
Man, where was this when I was building Athena Crisis with the DOM (I'm an idiot).
1 like

@couponnephew
daaang I need to add some effects to my Risk game
1 like

@MarkFonts
Can someone explain why these are impressive? Was this pretext enabled or shader enabled?
1 like

@wesbos
Painting elements to canvas was enabled. So now anything you could do with canvas, you can apply to HTML elements, without giving up the ease or accessibility of html and css
5 likes

@tommyvedvik
@MarkFonts this is bigger than pretext 😅
1 like

@MarkFonts
@wesbos that’s what she said

@sergical
Is this Flash v33?
1 like

@jassdotgg
I NEED SOUND. PLEASE.
1 like

@BLU3MOJO
Been loving all the html in canvas content ngl












