HASIO
LET’S TALK
All builds

№ 005

Card-ring loader

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

A counter tracks real loading while sixteen cards are dealt round a small tilted ring; then the camera drops inside and the same cards become a carousel you drag.

· Loader · 3D · Carousel

See it move, then play it

Play full screen: Card-ring loader

Drag or scroll to spin the ringSwipe to spin the ring

What it does

A loader that becomes the hero: one 3D scene in plain CSS transforms, no WebGL.

Sixteen portrait cards (9:16) stand on the inside of a cylinder, each at its own angle.

How we built it

  1. 01 —

    01 — Measured before built

    A requestAnimationFrame logger on the original recorded every card’s transform, frame by frame, at two screen sizes. Fitting those logs gave the numbers this build runs on: 16 cards of 270×480, a ring that grows from 460 to 1800 px while the perspective falls from 1000 to 450, opened over 1.9 s on cubic-bezier(.5, 0, .15, 1).

  2. 02 —

    02 — One function places every card

    Each card is an angle. Its position, yaw, how far it has been dealt and whether its face is turned round are pure functions of that angle and two numbers, the deal and the opening. Frozen beside the original at five moments, at 1440×900 and 390×844, our card edges land within 2 px of its.

  3. 03 —

    03 — The back of the ring needed a lift

    Flattening the tilt drops the far side of the ring. A lift of 518·e(1−e) px, fitted to four runs to under 0.4 px, keeps it on one arc — and the camera must not ride it. Our first version let it, and the comparison caught every card 43 px low mid-open.

  4. 04 —

    04 — The counter counts bytes, and keeps pace with the deal

    Each of the sixteen faces is fetched and read chunk by chunk. The number on screen is the smaller of the real progress and the deal’s, so on a normal load it climbs with the cards and reads 100 on the frame the last one lands, the frame the ring opens. On a slow one it follows the bytes and never passes them. The original’s counter follows its downloads alone and hits 100 one and a half to two seconds before its deal ends; here we chose to keep the two together. The digits are an odometer written every frame, so what you see is the value, never a roll behind it.

  5. 05 —

    05 — A painted world, the original’s layout

    Behind the ring, a golden-hour sky at 80%; in front, a cloud bank at 92% that rises 18% and fades in as the ring opens, so the cards stand in mist. The sky, the bank and the sixteen cards were all painted for us with GPT Image from our own brief, and all three are shared with Deck into a wheel. The layers sit where we measured the original’s: the sky is placed so its sun glows behind the carousel’s centre-right. Sixteen cards of 432×768 weigh 298 KB; the sky and bank, 91 and 83 KB. No colour family sits beside itself, and the strongest five face you as the opening ends. With a mouse, the sky drifts up to 10 px and the bank 34 px against it, on a spring, as on the original.

  6. 06 —

    06 — Drag is 0.2° a pixel

    Measured, not chosen: a 200 px flick on the original moved the ring exactly 40°, and a step settled at 7.7 per second with no overshoot. So a drag moves a target, the ring chases it on an exponential, and nothing ever snaps.

Make your own

The prompt · 352 words

Build a loader that becomes the hero: one 3D scene in plain CSS transforms, no WebGL. Sixteen portrait cards (9:16) stand on the inside of a cylinder, each at its own angle. In the loader the cylinder is small and seen from above at a slant, rolled to a dutch angle; the cards start stacked at the point nearest the viewer and are dealt round the ring one by one, in order of their angle, each easing out and fading in as it leaves the stack. The deal takes about 2.6 seconds whatever the network does. A large monospace counter in the bottom corner shows real loading of the card images (bytes received, then decoded), never a timer, held to the deal’s own progress so it never runs ahead of the cards: it reads 100 as the last card lands. Each digit rolls in its own column. When the deal is done and every image has decoded, open the scene over about 1.9 seconds with a strong ease-in-out: the radius grows about four times, the camera levels out and moves inside the ring, the perspective shortens, the cards grow, and a paper backdrop fades away to show a painted sky behind them. As it opens, raise a painted cloud bank in front of the ring’s lower half from 18% of its height below, fading it in to 92% so the cards show through it like mist. Lift the ring slightly mid-way so its far side travels on one smooth arc. With a mouse, let the sky and the cloud bank drift gently against it, the bank further than the sky. Open, the ring turns slowly on its own. Dragging, swiping or the wheel moves a target angle and the ring follows it smoothly, with no snapping and no bounce; it pauses while a finger drags or the mouse rests on a card. Arrow keys turn it one card. Escape skips the entrance. With reduced motion, show the open carousel straight away and keep it still. Write every transform from one function, only when its value changed, and clean everything up on unmount.

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 № 005, 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