HASIO
LET’S TALK
All builds

№ 006

Deck into a wheel

Inspired by @avi_vashishta29 (avivashishta.com). Rebuilt from scratch by HASIO.

Thirty-four painted cards deal into a fan, then lift into a wheel that turns slowly above painted clouds until you spin it.

· Hero · 3D · Cards

See it move, then play it

Play full screen: Deck into a wheel

Drag or scroll to spin the wheelSwipe to spin the wheel

What it does

A hero section in React with plain CSS 3D transforms and one requestAnimationFrame loop (no WebGL).

A deck of 34 portrait cards (9:16) rises face down from below the frame, flips face up and fans out from the top into an arc, then lifts into a slowly turning wheel standing above a bank of clouds.

How we built it

  1. 01 —

    01 — Measured, not guessed

    We sampled the original’s card transforms every frame in headless Chromium at 1440 × 900 and 390 × 844, froze it mid-motion, and posed ours at the same instant. At the deck, the fan, mid-lift, at rest and mid-drag, every visible card lands within 1 px of his (0.81 at worst). Most land within 0.2.

  2. 02 —

    02 — One clock, run both ways

    Deal, lift, the paper fading out, the clouds rising, the sky’s zoom and the window closing are all functions of a single time: a 2.6 s linear deal, then a 1.9 s lift on cubic-bezier(.5, 0, .15, 1) that starts 20 ms after it. The same functions run backwards for record mode’s replay, which is how the loop closes on itself in 7.7 s.

  3. 03 —

    03 — The live page is not the prompt

    His published prompt sweeps each card in from 70° to the right. The live piece fans them out from the top instead, so we matched the page. It also writes scales to two decimals (0.95 where the formula gives 0.9465), and copying that rounding is worth 5 px at the edge of a 1440 px frame.

  4. 04 —

    04 — 34 cards, one string each

    Each card is one transform: go to the pivot, turn, push out along the radius, flip, scale. Cards more than 105° from the top are hidden, and a write cache skips any style that did not change. At rest only about 20 of the 34 are painted, and a frame writes about 20 strings.

  5. 05 —

    05 — The sky is two paintings

    There is no canvas or WebGL. A golden-hour sky sits behind the wheel and a cloud bank sits in front, both painted for us with GPT Image from our own brief. The bank is defringed, and made fully opaque wherever the wheel passes behind it. The sky is placed so its sun glows behind the wheel’s centre-right, and the bank’s edge lands where we measured the original’s. The world zooms from 1.07 to 1 at the reveal while the full-screen picture closes into a rounded window: 1.08 s into the lift, over 1.1 s, onto the original’s own frame and corner radius (28 px, 20 on a phone), to the pixel. The layers drift up to 10 and 34 px against the mouse. The two images weigh 91 KB and 83 KB.

  6. 06 —

    06 — Twenty paintings, thirty-four places

    The cards, like the sky, were painted for us with GPT Image from our own brief. There are twenty of them, cropped to 9:16 and saved at 432 × 768, the largest card on a 2x screen; together they weigh 358 KB. Fourteen appear twice, never closer than 9 places apart and never beside a card of the same colour family. The strongest five sit where the wheel comes to rest, and every face is decoded before the first card is dealt.

Make your own

The prompt · 467 words

Build a hero section in React with plain CSS 3D transforms and one requestAnimationFrame loop (no WebGL). A deck of 34 portrait cards (9:16) rises face down from below the frame, flips face up and fans out from the top into an arc, then lifts into a slowly turning wheel standing above a bank of clouds. Geometry. The cards stand on a full circle around a pivot below the frame, so only the top third is ever visible and the wheel can turn forever without a seam. Card i has a home angle of i × 360/34, with 0 straight up. Give each card one transform: move to the pivot, set a little further back in z the further it is from the top, rotate to its angle, push out along the radius, flip, scale. Hide any card more than about 105° from the top. Scale the whole scene to fit its box, not the window. Deal: about 2.6 s, linear. The card at the top goes first and the deal spreads to both sides at once. Each card spends 40% of the deal flying in, with an ease-out. It comes up from below the circle, fans out from the top to its home angle, turns 180° to face up, and grows from 70% to full size. Lift: about 1.9 s, cubic-bezier(.5, 0, .15, 1), starting as the deal ends. The cards grow 35%, the circle grows from 580 to 1010 px and drops from 500 to 814 px below centre, the scene tips back 12° and grows 14%, and the wheel turns 28° in the direction it will drift. After that it drifts 7° a second on its own. World. As the lift starts, fade out a paper-coloured panel to reveal a painted sky behind the wheel. Raise an opaque cloud-bank image in front of its lower half from 18% of its height below (1.6 s, ease-out), so the wheel rises out of it. A second later, ease the sky and clouds from 107% to 100%, and at the same moment close the full-screen picture, wheel included, into a rounded window inset from the edges (1.1 s, 28 px corners, 20 on a phone). The sky and clouds drift gently against the mouse, the clouds further than the sky. Input. Drag, swipe and the scroll wheel move a target angle (about 0.3° per pixel of drag). The shown angle follows the target at 1 − e^(−9·dt), at any frame rate. A flick keeps its speed and decays at e^(−3.2·dt), unless the pointer paused for 80 ms before letting go. The cards never tilt toward the cursor. Performance and access. Decode every image before the deal starts. Cache each style write and skip it if nothing changed. With prefers-reduced-motion, show the wheel at rest with no drift.

The code goes public soon. The prompt is yours now.

Credit

Inspired by @avi_vashishta29 (avivashishta.com). Rebuilt from scratch by HASIO — no code or assets reused.

Want this on your site?

Message us on WhatsApp. The message already says you mean № 006, so we start from the right place.

Or ask your AI about us.

Tell us what you’re planning

We’re planning
for
and we’d like to launch by
See what we’ll send

Read https://hasiostudio.com/llms.txt and the pages it links. Then ask me what we’re planning, who it’s for and when we’d like to launch, and tell me whether HASIO Studio is a good fit for the project. If it is, draft a short email to hello@hasiostudio.com with our scope, timeline and budget.

Or if you prefer a human — email us at hello@hasiostudio.com