FANCYUI
Tune Button — satin shimmer
Esc to close
Button — satin shimmer
A satin band sweeps a black pill, then rests; on hover the sheen follows the pointer.
Use in FancyUI
-
pnpm add fancy-ui-svelteimport { ShimmerButton } from "fancy-ui-svelte";
- Type
- Interaction
- Interaction
- Ambient, Hover
- Style
- Glow, Minimal
- Code availability
- Open source
Why it works
The idle loop sweeps a satin band across the pill and then rests, so it invites without strobing. On hover the sheen jumps to the pointer, so the button answers the cursor rather than looping past it.
When to use it
A single sign-up or early-access action on a dark hero.
Things to watch
It sets `--radius` on its root, which overrides the theme token for any `rounded-*` child. Reduced motion leaves a static sheen.
Implementation clues
- sweep-then-rest keyframes
- pointermove → --mx / --my
- face inset by --cut over the sheen