5 Curated Single Html Prompts

Single Html Prompts

Production recipes and workflows categorized under #single-html.

Majid Manzarpour
@majidmanzarpour

Code animation

✦ClaudeCode animation

Animated pixel-art wizard (Canvas 2D)

Single-file HTML/Canvas spec for a 16-bit pixel-art wizard casting a spell in a seamless loop.

Animated pixel-art wizard (Canvas 2D) by Majid Manzarpour
Create a single self-contained HTML file that renders an animated pixel art wizard casting a spell, using vanilla JavaScript and Canvas 2D. No external assets, libraries, or network requests. RENDERING - Draw everything to an offscreen canvas at a fixed logical resolution of 128x96, then blit to a fullscreen display canvas scaled by the largest integer factor that fits the window, centered, with imageSmoothingEnabled = false and CSS image-rendering: pixelated. - All drawing snaps to integer coordinates on the logical canvas. No sub-pixel positions, anti-aliasing, gradients, or shadowBlur. - Fixed palette of ~24 hex colors: deep blues/purples for night sky, warm robe tones, 3-4 bright magic colors. Every pixel comes from this palette. CHARACTER - Build the wizard procedurally from filled rects and pixel runs, ~24x32 logical pixels: pointed hat with a bend, long beard, two-shade robe with darker outline, staff with a gem at the tip. - Parameterize the pose (staff angle, arm raise, head tilt, robe sway). Animate parameters smoothly, then quantize to the pixel grid each frame so motion reads at an 8-12 fps pixel animation feel even though the loop runs at 60fps. ANIMATION - Looping state machine: IDLE (2-frame bob, beard sway) -> CHARGE (staff raises, gem flickers, sparks spiral inward) -> CAST (bright burst, projectile fires across the scene, 1-2 pixel screen shake) -> RECOVER (settle back). Ease pose parameters between keyframes. - Pooled allocation-free particle system: preallocate and reuse. Sparks orbit the gem during CHARGE, explode outward on CAST, each particle stepping its palette index from white to magic color to dark before despawn. Snap particle positions to the grid when drawing. - Fixed 60hz timestep update with rAF rendering. Zero object allocation inside the loop. SCENE - Minimal background: dark sky, a few twinkling 1px stars, moon, stone floor line. Character silhouette must read clearly. - Subtle 1px rim light on the wizard from the gem, brightening during CHARGE and CAST. QUALITY BAR - Crisp pixels at any window size, seamless loop, stable 60fps, readable silhouette. Should look like a polished 16-bit sprite animation, not vector shapes scaled down.
·451.2k uses·View original
Alex Prompter
@alex_prompter

Explainer

✦ClaudeExplainer

30s business explainer, 5 scenes

Role prompt for a 30-second single-HTML explainer: problem, solution, 3 steps, proof, name.

30s business explainer, 5 scenes by Alex Prompter
Adopt the role of an expert motion designer. Build a 30-second animated explainer for my business as a single HTML page. 5 scenes. The customer's problem, what I do, how it works in 3 steps, one proof point, and my name at the end. Bold text, smooth transitions, my brand colours. My business [DESCRIBE WHAT YOU SELL, WHO IT'S FOR AND YOUR COLOURS]
·41.1k uses·View original
dawood46
@notdwd

Launch video

✦ClaudeLaunch video

12s launch animation via seek(t) + Playwright + ffmpeg

Full technical brief: 1920x1080 at 30fps, one HTML seek(t) renderer, synthesized sound, and 5 stills critiqued before render.

12s launch animation via seek(t) + Playwright + ffmpeg by dawood46
Make a 12s motion video in code (1920x1080, 30fps, one HTML file drawing every frame from a single seek(t) function, rendered with Playwright + ffmpeg, with original synthesized sound). Story: a dark prompt pill on an off-white page types "make a launch video" with a real keystroke rhythm → enter, the button flashes orange and the pill slides up → a 12-frame filmstrip stamps in left to right, one frame per beat at 120 BPM; each frame shows one pose of an orange ball's bounce (squash on contact, stretch mid-air, real arcs) → a playhead sweeps the strip while a big viewer above plays the poses as a flipbook, twice, faster the second time → the strip slides away, "every frame is code." fills the screen, and the ball arcs over and lands as the period. Rules: arrive fast, land soft (cover 12–19% of the remaining distance per frame); nothing ever freezes (slow push on every hold); stagger 2–4 frames; blur only on fast moves; big and readable on a phone; off-white, ink and one orange only. Sound: a tick per key, a click on enter, a rising note per frame stamp, a thump when the ball lands. Show me 5 stills first (typing, strip half-built, flipbook, headline, last frame), critique them like a harsh motion director, fix the 3 worst problems, then render.
·18.1k uses·View original
Jason Zook
@jasondoesstuff

Editorial microsite

✦ClaudeEditorial microsite

10-page horizontal editorial magazine (single HTML)

A brand magazine you swipe sideways, from cover to back cover, as one HTML file.

Original X post
Create a 10-page horizontal-swipe editorial magazine as a single HTML file. My brand: [PRODUCT NAME], [URL], primary color [HEX/HSL], heading font [GOOGLE FONT], body font [GOOGLE FONT] Pages: Cover, Problem, Solution (steps), Features, Audience, Competition, Origin Story, Launch/Traction, Tech, Back Cover About my product: [PASTE WHATEVER YOU HAVE: pitch deck text, landing page copy, about page, notes, bullet points. The more the better but anything works.] Design rules (non-negotiable): 100vw x 100vh pages, horizontal scroll-snap, no vertical scrolling Full-bleed edge-to-edge layouts only. No padded cards floating on backgrounds Split layouts (left/right color blocking), viewport-filling grids, 2x2 quadrants Key stats rendered at 100px+ font size as visual anchors Dark panels on 3+ pages for contrast. Cover and back cover are dark Each page a different background tint. Nav dots at bottom. Arrow key support
·17.6k uses·View original
Mark Santos
@markksantos

Model comparison

✦ClaudeModel comparison

Single-HTML Sonnet 5 landing page (Sonnet 5 vs Opus 4.8)

A one-sentence landing page prompt used to benchmark Sonnet 5 against Opus 4.8, with cost and time.

Single-HTML Sonnet 5 landing page (Sonnet 5 vs Opus 4.8) by Mark Santos
build a single html landing page about claude sonnet 5, the new AI model that just dropped from Anthropic.
·326.6k uses·View original