PrismLink UI

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

import { FadeDown } from "@prismlinkapp/ui/animations/fade";
 
<FadeDown variant="h1" sticky stickyOffset={20}>
  Fade Down Animation
</FadeDown>;

Options

PropTypeDefaultDescription
childrenReactNodeRequiredChild elements to be rendered
classNamestring""Additional CSS classes to apply
variant'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span''div'HTML element type to render
stickybooleanfalseEnable sticky positioning
stickyOffsetnumber0Offset from top in pixels when sticky is enabled

FadeUp

Animates children with an upward fade-in motion.

Preview

Fade Up Animation

import { FadeUp } from "@prismlinkapp/ui/animations/fade";
 
<FadeUp variant="h1" sticky stickyOffset={20}>
  Fade Up Animation
</FadeUp>;

Options

PropTypeDefaultDescription
childrenReactNodeRequiredChild elements to be rendered
classNamestring""Additional CSS classes to apply
variant'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span''div'HTML element type to render
stickybooleanfalseEnable sticky positioning
stickyOffsetnumber0Offset from bottom in pixels when sticky is enabled

On this page