Hero 406 block design & features
Hero406 is a full-screen headshot studio hero built with shadcn/ui and WebGL. A centred heading, description and two buttons sit above a carousel of portraits, with the current sitter shown in full colour inside a round glass medallion.
The medallion is a fragment shader that keeps the middle of the portrait flat and squeezes it hard at the rim, with a little colour fringing, a thin bright edge and a soft highlight that follows the pointer. Neighbouring portraits stand on either side in greyscale, rotating and stepping back in 3D the further they are from the centre. Drag or fling to spin the carousel with momentum, use the arrow buttons or keys, or let it advance on its own, and the lens crossfades between sitters as it turns.
It suits portrait studios, casting agencies, team pages and speaker line-ups. Surfaces use theme tokens, so it works in light and dark mode, and visitors who prefer reduced motion get a still carousel that steps instantly.
