sigilUI

Fade In

Reveal content with an opacity transition.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { FadeIn } from "@sigil-ui/components";

Usage

<FadeIn>
  <Badge>Fade in</Badge>
</FadeIn>

Props

PropTypeDefaultDescription
directionFadeDirectionupDirection to fade from.
offsetnumber24Offset in pixels for the translate.
delaynumber0Delay before animation in ms.
trigger"scroll" | "mount"scrollWhether animation triggers on scroll (IntersectionObserver) or immediately on mount.
viewOptionsUseInViewOptions—IntersectionObserver options when trigger is "scroll".

Token integration

CSS VariablePurpose
--s-duration-normalDuration normal
--s-ease-outEase out