NeoTerm UI

AnimateIn

Animate any content on mount with fade + slide/scale entrance.

Import

import { AnimateIn, Stagger } from "neoterm-ui";

AnimateIn

<AnimateIn direction="up" delay={0.1}>
  <Card>Slides up on mount</Card>
</AnimateIn>

<AnimateIn direction="scale" duration={0.4}>
  <Badge>Scales in</Badge>
</AnimateIn>

AnimateIn Props

PropTypeDefaultDescription
direction"up" | "down" | "left" | "right" | "scale""up"Entrance direction.
delaynumber0Delay in seconds.
durationnumber0.3Duration in seconds.
asElementType"div"Wrapper element type.
childrenReactNodeContent to animate.

Stagger

<Stagger stagger={0.05} direction="up">
  <Card>Item 1</Card>
  <Card>Item 2</Card>
  <Card>Item 3</Card>
</Stagger>

Stagger Props

PropTypeDefaultDescription
staggernumber0.05Delay between each child (seconds).
direction"up" | "down" | "left" | "right" | "scale""up"Entrance direction.
durationnumber0.3Duration per item.
childrenReactNodeItems to stagger.