Display text whose letters each turn a full circle in a left-to-right wave. Pick the axis (flip on x, turn on y, spin on z) and start it on hover, on keyboard focus, once on mount, when it scrolls into view, by bumping a play counter, or scrub it by hand from 0 to 1 for scroll-linked headings. Hover can come from any ancestor marked data-spin-group, so a whole link or card triggers it. Echo mode puts a coloured copy on each letter's back face so the wave flashes your accent mid-turn, and scatter gives each letter a small, stable offset for a looser ripple. Words never break mid-line, screen readers hear the text once rather than letter by letter, and reduced motion turns the spin off.
Components
Components
A night-sky backdrop for heroes and cards. Three depths of twinkling, slowly drifting stars are drawn on one sharp, resolution-aware canvas, thin glowing streaks with tapered tails shoot across at random intervals, and a faint haze from your chart colours sits on top. Set the streak angle and colour, use it as a dark night sky or a light paper sky with ink specks and pencil streaks, or let it follow the theme. Clicking empty sky fires a streak from the pointer, and an optional constellation mode joins nearby stars to the pointer with hairlines. It pauses when off screen or in a hidden tab, caps at 60 frames a second, stays out of the way of content and clicks layered on top, and shows a still star field when reduced motion is on.
A preview card that grows into a centred dialog and shrinks back into place. The dialog opens out of the card's rectangle while the shared image and title travel and resize to their dialog positions, and the rest of the dialog fades in a beat later. Closing shrinks back into wherever the card is now, even after the page scrolled. On touch the dialog can be dragged down to close with the backdrop fading, and gallery mode adds previous and next controls plus arrow keys to move between cards. Built from small parts (CardExpand, Item, Trigger, Content, Image, Title, Description, Close). The dialog is modal and labelled by its title, focus moves to Close and stays inside, Escape closes, focus returns to the card and the page behind is inert. Reduced motion uses a plain fade.
Adds friction to risky actions in two modes. Slide: drag a round knob along a pill track that fills behind it; letting go before 90% springs it back, reaching the end locks it with a check and a green track. Hold: press and hold a button whose background fills over a set time and drains back at double speed if released early. A tick ruler under both lights segment by segment. onConfirm may return a promise, which shows a spinner until it settles and then success or an inline error with Retry. An optional Undo appears for a set window, after which it resets or stays done. The slider works with arrow keys, End or Enter and Escape, the hold button with Space or Enter, touch works through pointer capture, the result is announced, and reduced motion swaps the spring for a snap.
Ticket card
FreeA printed-style ticket for events, travel or memberships. A main panel and a stub are joined by a dashed perforation with round notches cut from both edges, so the page shows through. Three layouts: event (date block, title, venue, seat or tier), boarding pass (route codes joined by a dashed flight arc, gate, seat, boarding time) and membership pass (tier, holder, expiry). The stub can be torn off by dragging it or with a Tear button: it drops away, leaves a torn edge and an Admitted stamp, and calls onTear. Passes can flip in 3D to a back face with a decorative code drawn from a seed and fine print. Fields use description lists, the flip is a pressed-state button, and reduced motion swaps the flip and tear for fades. The layout stacks on narrow screens.
Swipe sheet
FreeA panel that slides in from any edge (bottom, top, left or right) with a grab handle and is dismissed by dragging it back. Releasing past 35% of its size or with enough speed closes it; otherwise it springs back, and dragging the wrong way meets rubber-band resistance. Bottom sheets can rest at snap points such as 30%, 60% and 92%, the backdrop fades with the drag, and an optional stack target scales the page behind for a layered feel. Modal sheets trap focus, lock page scroll and return focus to the trigger; non-modal sheets leave the page usable, which suits a mini player. The handle is a button: arrow keys move between snap points and Escape closes. Scrollable content only starts a drag from the top, and reduced motion swaps the spring for a short linear slide.
Guided tour
FreeAn onboarding walkthrough that points at real parts of your interface. A dimmed overlay leaves a rounded cut-out around the current target, and the cut-out glides and resizes from one target to the next. A step card sits on the side with room (flipping when it would overflow) with an arrow, title, body, step dots, Back, Next and Skip; under 480px it docks to the bottom as a sheet. Targets are CSS selectors or refs, scrolled into view and re-measured on scroll and resize. Optional beacon mode starts from a pulsing dot instead of the overlay, and interactive steps let clicks pass through the cut-out and advance when the target is pressed. The card is a labelled dialog with trapped focus, arrow keys and Enter to step, Escape to end and focus returned to the launcher; the target is described by the step while active. With reduced motion the cut-out jumps instead of gliding.
A centred hero over slow curtains of colour mixed from your chart tokens (var(--chart-1) to var(--chart-5)), so the field changes with the theme. Headline, one sentence, two actions and a short note, then a cropped forecast card with an SVG line chart (actuals, dashed plan and its range) rising into the next section. The ribbons only drift when motion is allowed and sit still otherwise.
