Drag with can-move
Drag two shared stickers inside a bounded area and keep their positions across reloads.
- can-move
- dragging
- bounds
Browse complete PlayHTML recipes and smaller live demos from across the docs. Recipes open on their own page and can be remixed in the playground. Docs demos jump to the guide that explains them. The newest sites people made with PlayHTML show at the top. The full list lives in the playhtml.fun gallery.
To test a collaborative example, open it in two browser windows. Use a regular and private window, or use two different browsers. Then follow the steps on the example page.
24 examples
Drag two shared stickers inside a bounded area and keep their positions across reloads.
Share one persistent on or off switch with every connected browser.
Show an ephemeral hover effect to everyone while any connected reader is hovering.
Filter a textarea to emoji while can-mirror shares its current value.
Append direct list children and let can-mirror share the resulting DOM.
Increment one persistent count with a merge-safe can-play data update.
Add short notes to a persistent shared list capped at the latest 20 entries.
Draw a tiny face and add it to a shared strip capped at 20 doodles.
Show your saved name and color, and let readers change them for everyone.
Everyone picks a status and sees everyone else's, gone when they leave.
Show one live colored dot for each reader currently on the page.
Draw everyone else's cursor as an emoji in their color with onCustomCursorRender.
Store one page-wide background color in a named page channel that any code can write.
Spin the logo stamp from the playhtml.fun homepage, from any other page.
Trigger a temporary rain effect for everyone currently connected.
Broadcast short-lived emoji reactions without storing shared state.
Share when a spin started and where it lands, so every reader sees the same result.
Play, pause, and restart one audio file for everyone using a shared timeline.
Send a one-shot cue to everyone currently connected, or share a loop that late joiners can join.
Drag, drop, add, and reset a small set of physics bodies shared across browsers.
Grow or shrink a balloon and share its current scale.
Drag a wheel to rotate it for everyone on the page.
Create shared copies from one template and reset the collection.
Test shared forms, contenteditable fields, hover, focus, and nested elements.