Ultra Plan Cards
Three glass plan cards dealt in by the scroll, with a real monthly and yearly switch; the featured one wears a slowly turning ring of the six values' colours.
DOM + CSS0 deps1 file · 40 KB TSXreduced-motion aware
Props
"use client";
import { useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
import type { CSSProperties, RefObject } from "react";
/**
* UltraPlanCards — three plans dealt in by the scroll, the featured one wearing the six values' spectrum.
*
* Glass cards rise in order as the section comes into view and hold. A real
* billing switch slides between monthly and yearly and changes the prices
* that depend on it. The featured card is ringed by a slowly turning
* conic gradient of the six values' colours, with a soft halo of the same;
* every card carries the kit's lamp, a light and a lit edge that follow the
* pointer. On a phone the cards stack with the featured one first.
*
* Part of the Ultra kit: an adaptive style whose grammar is the viewer. Every
* Ultra asset reads six live values (contrast, warmth, light, density, motion,
* focus) from one shared tuning and re-forms its tone, edges, density and
// ---------------------------------------------------------------
// Full source available with a viberdy Pro subscription.
// https://viberdy.dev/pricing
// ---------------------------------------------------------------
}Details
About this section
A pricing section that belongs to the page it sits on. Three glass cards rise in order as the section comes into view and then hold still. A billing switch slides between monthly and yearly and changes the prices that depend on it. The featured plan is ringed by a slowly turning band of the six values' colours, the same spectrum the prism throws, with a soft halo of it underneath. Every card carries the kit's lamp: a light and a lit edge that follow the pointer across it. On a phone the cards stack with the featured one first.
Curator’s note
Pro: the deal is driven by the section's pass through the view (no timers); the spectral ring is a conic gradient turned through a registered custom property and masked to a 1.5px border, with a blurred twin for the halo. Every Ultra entry reads the same six values (contrast, warmth, light, density, motion, focus) from one shared store, so a change made in any of them re-forms all of them.


