zerowing.in Download the code

A pop-up book, drawn in code

12 rooms in 3 books. Every wall, person, lamp and page is JavaScript on a canvas, with no images and no 3D models. Turn the pages, then switch on the night with the moon.

Download the code (zip, 120 KB) Open full screen

Drag a page to scrub it, or use the arrow keys. The tabs at the top switch books.

12 rooms, all alive

Each room pops up when its page opens, and every one has its own night: lamps, lit windows, fireflies or an aurora.

Draw your own room

Unzip the code, open Claude Code in the folder, fill in your room and paste this. It adds the room to a book and checks its own screenshots by day and by night.

PROMPT.md

    

What's inside

Five small files and one file per room. Run python3 -m http.server in the folder and open it.

engine.js

The book: camera, page turns, pop-up timing, ink lines, sticker halos, shadows and the day-to-night blend.

mesh.js

The 3D builder: boxes, lathes, tubes, leaves, moving parts and night lamps.

figures.js

People with a walk cycle, poses, hats and hair, on pacing or loop paths.

rooms/*.js

The 12 rooms, one file each, built from those parts. Copy one to start your own.