AI CSS Animations

CSS Radio Button Cards

13 radio buttons as selectable cards: plan pickers, yes/no choices, image tiles and option cards, all real radio inputs that work with the keyboard and in forms.

CSS Accordion with Radio Buttons

An FAQ accordion where every header is a radio, so opening one closes the rest. Panels ease open with the grid-template-rows 0fr to 1fr trick and the chevron flips.

minimal · card-select

Size Picker with Fit Note

A product page size picker, S to XXL. A marker slides along the fit scale under the chips to the chosen size, and the chest measurement line swaps in with a short rise for each pick.

card-select · segmented

How to use these radio button cards

Open any group, copy the HTML into your form and the CSS into your stylesheet. Every option is a real <input type="radio"> inside its <label>, and the group shares one name, so arrow keys move the selection and the form submits the chosen value.

Give each group on a page its own name. To change the color, set --rad-color; to change the size, set --rad-size. Sliding indicators and dots follow the checked input with :checked and sibling or :has() selectors.

Every snippet keeps a visible :focus-visible ring and ships with a prefers-reduced-motion rule that moves the selection instantly for people who asked their OS for less motion.