Little & Big Habits — A Picture Book That Turns in 3D
An open book on a dark screen: drag the page and it curls over the spine like paper, revealing the next bright spread, all in real-time Three.js.
A one-screen website built as a picture book you turn by hand. An open book sits in the middle of a dark screen, and each two-page spread is a chapter in its own bright colour: a giant illustrated word runs across the spine in chunky extruded letters (wood grain, stripes, dots or made of cloud puffs), a handwritten line sits above it, and a title with two sentences of advice sits on the right page among little drawings of moons, kites, hills, balloons and plant pots. Turning the page is the navigation. Drag it and the page follows your finger, bending in the middle of the turn and trailing at its edge like real paper, casting a shadow on the page beneath and catching a thin sheen as it goes over; let go past halfway and it lands, or flick it. A click or tap on either side, the wheel and the arrow keys turn it too, and the chapter dots jump several pages by turning each one in between. Hovering near an edge lifts the corner, the book leans toward the pointer and wobbles when you try to go past the end, and the glow behind it changes to each chapter's colour. Every page is painted in code on canvas, so there is not a single image to download, and the book changes its width to fit a phone rather than shrinking. The sample is a seven-chapter parenting guide (wonder, kindness, courage, listening, patience, play and thanks), ready for a children's book, a school, a course, a brand story or any product told in chapters.
Paste the prompt intoClaude CodeCursorAntigravityWindsurfLovableBoltv0
What's in the source
6 files — one self-contained page that opens in a browser, with the prompt that made it.
little-big-habits/ ├─ PROMPT.md ├─ index.html └─ … 4 more
How to run this
Works the same on Windows, macOS and Linux. No prior setup beyond Node.js, and nothing to configure — the pack runs as-is.
- Built with
- HTML, CSS & JavaScript
- Requires
- Node.js 18 or newer
- Opens at
- http://localhost:3000
Note — No build step: index.html, style.css and two ES modules, main.js (the 3D book) and draw.js (the painted spreads). Three.js 0.170 loads from jsDelivr through an import map, and the fonts from Google Fonts. Serve the folder over http, because ES modules do not run from file://.
✦ Or let an AI agent set it up for you
Already using Claude Code, Antigravity, Cursor or Windsurf? Unzip the pack, open the folder as a project, and just ask:
Install the dependencies and run this project, then give me the URL
It reads the README included in the pack, runs the right commands for this project, and sorts out anything that trips along the way. You still need Node.js installed (step 1 below) — everything after that it can handle.
Or run it yourself
- 1
Install Node.js, if you don't have it
Download the LTS build from nodejs.org and run the installer — on Windows and Mac it handles everything. Mac users with Homebrew can run
brew install nodeinstead.To check it worked, run
node --version. It should print a number like v22.11.0. - 2
Unzip the pack, then open a terminal inside the folder
Windows: open the unzipped folder in File Explorer, click the address bar, type
powershelland press Enter.Mac: press Cmd+Space, type terminal, press Enter. Then type
cd(with a trailing space) and drag the unzipped folder onto the terminal window — it fills in the path for you. Press Enter. - 3
Start it
Run
npx serve .— npx downloads the little server on demand, so there is nothing to install first.Then open http://localhost:3000 in your browser. Leave the terminal open while you use it — closing it stops the site. Press Ctrl+C in the terminal to stop.
+ − If something goes wrong
- “npm is not recognised” / “command not found: npm”
- Node.js isn’t installed, or the terminal was open before you installed it. Close the terminal, open a new one, and try again.
- “Port 3000 is already in use”
- Something else is running there — often a previous copy of this site. Close the other terminal, or stop it with Ctrl+C.
- The page loads but images or video are missing
- Make sure you ran the command from inside the unzipped Little & Big Habits — A Picture Book That Turns in 3D folder itself, not the folder containing it.
Still stuck? Email us and we'll get it running with you.
Questions about Little & Big Habits
Who is Little & Big Habits for?
Little & Big Habits is for designers, developers and agencies who want a site that moves like film and doesn't look like a template. Ask your AI to make it about your brand and it rewrites the copy, colours and images around the same build.
What is Little & Big Habits built with?
Little & Big Habits is built with Three.js, 3D / WebGL and HTML/CSS/JS. The source is a single HTML file: open it in a browser and it runs, with no build step. The prompt is written for coding agents such as Claude Code, Cursor and Antigravity.
Can I use Little & Big Habits for a client project?
Yes. Every purchase includes a commercial licence: use it in your own projects and in work you deliver to clients, including paid client work, change and rebrand it, and publish the result with no credit needed. What you can't do is resell, share or republish the prompt or the source files themselves.
Should I buy the prompt or the source?
The prompt is the written brief that built the design: paste it into a coding agent such as Claude Code, Cursor or Antigravity and it builds the site on your computer, which you then refine. The source is the finished project itself, ready to run exactly as the preview shows. The source always includes the prompt.
Will the prompt give me exactly the preview?
Not exactly, and that's expected. A prompt is a starting point: AI output varies between tools and between runs, so plan to refine spacing, timing and copy. The source pack is the preview itself, finished and running.
Can I get a refund?
Single designs are final once delivered, unless something is wrong on our side: a broken or empty download, a pack that isn't what its page describes, or a double charge. Then email support@brandmotion.in with your receipt and we fix it or refund it. The full terms are on the refunds page.
More like this
Browse the store →
PremiumBR-Corio — One Camera From the Yard to the Open Sky
One unbroken camera move: a reach stacker loads a truck, the truck takes the road to the quay, the camera climbs over a container ship, and a freighter takes over above the clouds.
PremiumALCOVE — Interior Studio, Before and After
A white model of an apartment lifts off the studio table, its furniture drops in and the real materials sweep across it in Three.js, then five rooms wipe from before to after as you scroll.
PremiumNOCTÉ — High Jewellery, Taken Apart in 3D
A diamond turns in the dark, a ring flies together around it and explodes into its anatomy with live callouts, then an earring and an emerald pendant do the same, all in real-time Three.js.
