StealThis .dev

Comics — Narration Caption Box

A letterer's toolkit for comic narration captions, built in the classic sequential-art tradition with thick ink borders, halftone dot textures, and signature tilts. It pairs a live sample panel with an editor that lets you type caption copy and pick a style — the yellow Meanwhile box, a location and time stamp, a first-person narration plate, or a chapter-title banner — then pin it to any corner of the panel. A reference strip shows all four variants, and a copy-HTML action and surprise-me presets round out the demo.

在 Lab 開啟
html css vanilla-js
目標: JS HTML

程式碼

Narration Caption Box

The four workhorse captions of sequential art, rendered as one reusable component. A neon-rooftop sample panel — drawn entirely in CSS with a halftone overlay — hosts a single live caption, while a reference strip below shows each variant in context: the bright yellow Meanwhile… transition box, an inked location/time stamp, a paper-stock first-person narration plate, and a bold accent chapter-title banner set in display lettering. Every caption carries a hard ink border, a slight tilt, and a hand-set drop shadow.

The editor drives the live preview in real time. Type into the textarea to re-letter the caption, choose one of the four styles from a segmented radiogroup, and pin the caption to any of the four corners with the position picker. Both pickers are keyboard-navigable with arrow keys, the character counter tracks the 120-character limit, and the chapter-title style automatically adds its small kicker line.

A Surprise me button cycles through fictional, style-matched presets from the Neon Ronin and Iron Vanguard series, and Copy HTML writes the current caption markup to the clipboard so it can be dropped straight into a page. A small toast confirms each action, and the layout collapses to a single column with a square panel down to 360px.

Illustrative UI only — fictional series, characters, and data.