Fade Animations
Smooth fade transition components with optional sticky positioning, powered by Framer Motion.
FadeDown
Animates children with a downward fade-in motion.
Preview
Fade Down Animation
Options
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Required | Child elements to be rendered |
| className | string | "" | Additional CSS classes to apply |
| variant | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span' | 'div' | HTML element type to render |
| sticky | boolean | false | Enable sticky positioning |
| stickyOffset | number | 0 | Offset from top in pixels when sticky is enabled |
FadeUp
Animates children with an upward fade-in motion.
Preview
Fade Up Animation
Options
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Required | Child elements to be rendered |
| className | string | "" | Additional CSS classes to apply |
| variant | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span' | 'div' | HTML element type to render |
| sticky | boolean | false | Enable sticky positioning |
| stickyOffset | number | 0 | Offset from bottom in pixels when sticky is enabled |