Expanding fill button
A button whose fill circle grows from the point where the pointer entered and recedes toward where it left; keyboard focus fills from the centre.
What it is for
Primary and secondary calls to action on landing pages and sign-in.
Use it
1 · site.json
"effects": { "components": ["expanding-fill-button"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components expanding-fill-button2 · import it
import { ExpandingFillButton } from '@/components/fx/ui';Files
components/fx/ui/ExpandingFillButton.tsxui-expanding-fill-button.cssstyles
Source
Idea from Hover Interaction Collection; the code is written for this kit.
Credits and licences: third-party notices.
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.