Card Lab
Cards that change shape. Each one starts small and closed and opens into a bigger card, and most of the work went into the frames in between. The photos come from Lorem Picsum, so you need to be online to see them.
01
Reveal Card
A closed card with a geometric emblem opens into a tall photo card. The whole change is one aria-expanded flip wrapped in a same-document view transition: the card and its frame stretch to the new size, the title and number slide, and the emblem's mark grows into the photo, then takes it back on close.
02
Feature Carousel
A row of small feature cards with one featured card in the middle, grown to full size with a badge on its edge and a button hanging off its bottom. Selecting another card swaps them. The row's offset is computed in CSS from an index that :has() reads off the current card, so nothing is measured.
03
Scroll Carousel
The Feature Carousel with no JavaScript. A scroll-snap row where every card animates on its own view timeline: it scales up as it reaches the centre, pushes its neighbours aside and folds its panel into a V. Previous, next and the dots are CSS scroll buttons and scroll markers.
Demos 01 and 02 animate with the View Transitions API; demo 03 with scroll-driven animations, which Firefox has not shipped. Every demo still works without its animation feature, just without the motion, and all of them respect prefers-reduced-motion.