StealThis .dev
Strony Trudny

Comics — Guided View (panel-by-panel transitions)

A Marvel-style guided-view comic reader for the fictional series Neon Ronin, presenting one panel at a time full-bleed. A virtual page canvas holds ink-bordered panels with halftone texture, speech balloons, and bold SFX lettering; JavaScript computes a fit-to-viewport transform per panel and smoothly pans and zooms the camera between them. Progress dots track panels on the current page, a page label and issue scrub show position, and an autoplay toggle auto-advances every few seconds. Keyboard arrows, edge hotzones, and tappable dots all drive navigation.

Otwórz w Lab
html css vanilla-js
Targety: JS HTML

Kod

Guided View (panel-by-panel transitions)

A full-bleed guided-view reader for the fictional series Neon Ronin, built the way digital comics present a story on phones: one panel fills the screen at a time, and advancing pans and zooms a virtual page camera from one panel rectangle to the next. The panels live on a large logical page canvas with thick ink borders, gutters, halftone Ben-Day texture, hand-lettered SFX, and speech balloons with tails — and a single CSS transform on that canvas does all the moving.

The chrome stays minimal and out of the way: a series badge and issue title up top, a live page label and an issue-wide scrub bar, and a bottom bar with prev/next, a row of progress dots for the panels on the current page, and a one-line caption. The focused panel reads at full contrast while the rest of the page dims, so the eye always knows where it is.

JavaScript owns the camera. For each panel it pads the panel rect, computes the scale that contains it within the stage, centers it, and animates the transform with an eased transition; resizing recomputes the fit without a jump. Navigation comes from arrow keys (plus space, Home/End and a P autoplay shortcut), left/right edge hotzones, tappable dots, and an autoplay toggle that walks the issue every few seconds and stops at the end — each meaningful change announced through a small toast.

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