Guide · Claude Code · Updated

How to make cinematic websites with Claude Code

Quick answer: make a folder, save a template prompt into it as prompt.md, start Claude Code in that folder, and ask it to "build prompt.md into index.html, keep the assets in assets/, then serve it locally and check it at phone and desktop width." Claude Code writes the files, runs the page and fixes what breaks. Every design on this site was built this way.

Why Claude Code suits cinematic sites

Cinematic pages are long and depend on files: 3D models (GLB), videos, posters, textures. In a chat window you copy code back and forth and the preview often cannot load local files. Claude Code works directly in a folder on your machine:

  • it writes the full index.html to disk, so there is no copy-paste limit;
  • it can download or move assets and keep paths correct;
  • it can run a local web server and a headless browser to screenshot the page and read console errors;
  • it can re-encode video with ffmpeg, or compress a GLB, if those tools are installed.

Set up (once)

  1. Install Claude Code by following Anthropic's official instructions at docs.claude.com.
  2. Make a project folder: mkdir my-site && cd my-site.
  3. Copy a prompt from any template page and save it as prompt.md in that folder. (Or use the "Download .md" button.)

Build it

Start Claude Code in the folder and give it one clear instruction:

Build prompt.md into a single index.html in this folder.
Use the reference implementation verbatim, then apply these changes:
- brand name: Kiln & Co
- palette: clay #b86b4b, sage #8fa58c, paper #f4efe6
- replace the product names with: Moon Jar, Tide Bowl, Ash Cup
Put images and models in ./assets and keep the paths relative.

Then ask it to verify:

Serve the folder locally, open it in a headless browser at 390, 768 and 1440 px,
screenshot each, and fix any console errors or horizontal overflow.

Serve it over http, not file://

Designs that load a 3D model, a video or JSON will fail if you double-click index.html, because browsers block those requests from file://. Serve the folder instead:

npx serve .
# or
python3 -m http.server 8000

Swap in your own media

  • Images: keep the same size and aspect ratio as the originals so the layout holds. Ask Claude Code to convert them to WebP.
  • Video for scroll scrubbing: it must be encoded with a keyframe on every frame or scrolling stutters. Ask Claude Code to run:
ffmpeg -i in.mp4 -an -vf "scale=1920:-2" -c:v libx264 -g 1 -keyint_min 1 -crf 26 -preset slow -pix_fmt yuv420p -movflags +faststart assets/hero.mp4
  • 3D models: GLB files from a 3D tool or an image-to-3D generator are often large. Ask it to compress the model (for example with gltf-transform optimize) and load it with the matching decoder.

Deploy

Ask Claude Code to make the folder a git repository and push it, then connect the repository to Cloudflare Pages or Netlify with no build command and the folder as the output. Or drag the folder onto Netlify Drop.

Choosing the model in Claude Code

Claude Code can run different Claude models. For long, precise builds like these we use the most capable model available, such as Opus 5.5; Fable 5.2 is worth comparing on the same prompt. See Can Claude build cinematic websites? for more on model choice.

If it doesn't work

  • Blank canvas, no errors: the CDN may be blocked on your network. Ask Claude Code to vendor three.js locally (npm i three@<version> and change the import map).
  • Stutters when scrolling: the video is not all-intra, or the particle count is too high for your GPU. Ask it to lower the desktop tier.
  • Looks different from the demo: fonts did not load. Check the Google Fonts link is intact.

FAQ

Do I need to be a developer to use Claude Code?

You need to be comfortable typing a few commands in a terminal. Claude Code does the coding; you describe what you want and check the result.

Is Claude Code free?

Claude Code needs a Claude subscription or API usage. The templates on this site are free.

Can Claude Code build the whole thing from one sentence?

It can build something, but a one-sentence brief produces a generic page. A full prompt with art direction and reference code is what makes the result look designed rather than AI-made.