01 · buttonsActions & Primitives5 Variations
Buttons
Accessible interactive trigger primitives spanning high-emphasis solid, crisp outline, low-noise ghost, icon-only controls, and GSAP-choreographed animated buttons.
buttonsactionsctaprimitivesgsap
Animated Button
buttons/animated-button
Loading variation buttons/animated-button...
Component Information
GSAP-choreographed action trigger combining a sliding emerald fill curtain, dual-track label vertical reveal, and kinetic arrow nudge.
- Variation ID
- buttons/animated-button
- Motion Engine
- gsap
- Source File
- src/labs/components/components/buttons/variations/animated-button.tsx
Reduced Motion & Accessibility
Uses useGsapScope and skips GSAP timeline construction when prefers-reduced-motion: reduce is active, falling back to CSS color hover.
- Duplicate visual label track carries aria-hidden="true" so screen readers announce the button label once.
- Reverses cleanly on both mouse leave and keyboard blur.
Dependencies
- gsap^3.15.0Required
Paused hover timeline animating background curtain and dual label tracks
- lucide-react^0.553.0Required
Directional arrow indicator
Usage Documentation
import { AnimatedButton } from '@/src/labs/components/components/buttons';
export function PrimaryHeroTrigger() {
return <AnimatedButton size="lg">Start Exploring</AnimatedButton>;
}Props API (2)
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Trigger dimensions. |
| children | ReactNode | 'Explore Systems' | Primary label rendered across animated dual tracks. |