AtroUIAtroUI
  • Getting Started
  • Installation
  • MCP server
  • Coming from…
  • Collections
  • Registry
  • Theming
  • Host APIs
  • Brand kit
  • Identity kit
  • Landing kit
  • Launch workflow
  • For agents
  • Glossary
  • Compare
  • Alternatives hub
  • vs Aceternity UI
  • vs Magic UI
  • Aceternity alternative
  • Magic UI alternative
  • Tailwind Plus alternative
  • Changelog
  • Blog
  • Updates
  • ButtonCLI
  • DialogCLI
  • Alert DialogCLI
  • MenuCLI
  • Context MenuCLI
  • Navigation MenuCLI
  • MenubarCLI
  • PopoverCLI
  • TooltipCLI
  • Preview CardCLI
  • Scroll AreaCLI
  • SeparatorCLI
  • FieldCLI
  • Number FieldCLI
  • OTP FieldCLI
  • FormCLI
  • FieldsetCLI
  • InputCLI
  • TextareaCLI
  • CheckboxCLI
  • Checkbox GroupCLI
  • RadioCLI
  • SwitchCLI
  • ToggleCLI
  • Toggle GroupCLI
  • ToolbarCLI
  • AccordionCLI
  • CollapsibleCLI
  • ComboboxCLI
  • AutocompleteCLI
  • DrawerCLI
  • TabsCLI
  • ToastCLI
  • ProgressCLI
  • SliderCLI
  • MeterCLI
  • AvatarCLI
  • CardCLI
  • Form SelectCLI
  • Motion PlaygroundCLI
  • BreadcrumbsCLI
  • ProseCLI
  • Founder AvatarCLI
  • Theme ToggleCLI
  • Adaptive Theme SwitchCLI
  • Theme ProviderCLI
  • LogoCLI
  • TimelineCLI
  • Fade InCLI
  • StaggerCLI
  • Line RevealCLI
  • Word Reveal ScrollCLI
  • Text MorphCLI
  • Copy ButtonCLI
  • Label RollCLI
  • MagneticCLI
  • TiltCLI
  • SpotlightCLI
  • Animate NumberCLI
  • Transition PanelCLI
  • Scroll ProgressCLI
  • ASCII
  • DonutCLI
  • RainCLI
  • WaveCLI
  • SparkCLI
  • BarCLI
  • BootCLI
  • WordmarkCLI
  • DecodeCLI
  • Site HeaderCLI
  • Site FooterCLI
  • Bold FooterCLI
  • HeroCLI
  • PrincipleCLI
  • WorkCLI
  • CraftsCLI
  • LabCLI
  • WhoCLI
  • PricingCLI
  • Feature GridCLI
  • Logo CloudCLI
  • FAQCLI
  • Contextual CTACLI
  • Exit IntentCLI
  • Calendly EmbedCLI
  • Waitlist FormHost API
  • Newsletter FormHost API
  • JournalCLI
  • Social ShareCLI
  • ResourcesCLI
  • AR PortfolioCLI
  • Made With EmbedCLI
  • Hero ParallaxCLI
  • Hero LampCLI
  • Logo MarqueeCLI
  • Testimonials StackCLI
  • Feature BentoCLI
  • CTA BandCLI
  • Pricing TiersCLI
  • FAQ AccordionCLI
  • Stats BandCLI
  • Integration BeamCLI
  • Showcase CarouselCLI
  • Auth SplitCLI
  • SaaS StarterCLI
  • Landing KitCLI
  • OG ExamplesCLI
  • OG Live PreviewCLI
  • OG WorkspaceHost API
  • Thumbnail PreviewCLI
  • Thumbnail WorkspaceHost API
  • Project PlannerCLI
  • Scope ChatHost API
  • Launch WorkflowCLI
  • Live DashboardCLI
  • Analytics ProviderCLI
AtroUI·Home·Components·Blog·GitHub·Changelog

Primitive · CLI

Fade In

The scroll reveal — opacity + rise on the section beat. Optional blur settle.

Preview

$npx shadcn@latest add @atroui/fade-in

FadeIn

Scroll-reveal motion

Fades and rises as it enters view. Replay to see it again.

Installation

Agent blurb — install command + no npm UI rule. For agents

$npx shadcn@latest add @atroui/fade-in

Source lands in your repo. Installation · Registry

Usage

Use this for any scroll enter. Pass preview in docs canvases. For landing sections, use earlier trigger defaults (margin="-40px", amount=0.2) or spread fadeInSection. Prefer Stagger when siblings enter in sequence, Line Reveal for headlines.
tsx
import { FadeIn } from "@/components/ui/fade-in"

<FadeIn>Content</FadeIn>

{/* Docs preview (skips IntersectionObserver) */}
<FadeIn preview>Content</FadeIn>

Delay and travel

delay is seconds (Motion), not ms. Raise y when the block should feel like it climbed farther.

delay · y

Arrives later, from farther

delay is seconds; y is the starting translateY in px.

Section (landing) trigger

Earlier viewport trigger — same motion language, not a second component.

FadeIn · section

Earlier trigger, same motion

Spreading fadeInSection — not a second component.

API reference

PropTypeDefaultDescription
ynumber14Starting translateY in px.
delaynumber0Delay in seconds.
durationnumber0.45Tween duration (easeOutExpo section beat).
blurnumber | falsefalseOpt-in enter blur in px (e.g. SCROLL_REVEAL_BLUR). Off by default.
oncebooleantruePlay only the first time it enters view.
amountnumber | "some" | "all"0.15How much must be visible to trigger.
marginstring"0px"Viewport root margin. "-40px" triggers earlier (landing).
previewbooleanfalseAnimate on mount (docs canvases).
Related
  • Button
  • Dialog
  • Alert Dialog
  • Menu

Fade In

PreviousTimelineNextStagger
import { FadeIn } from "@/components/ui/fade-in"

<FadeIn>Content</FadeIn>

{/* Docs preview (skips IntersectionObserver) */}
<FadeIn preview>Content</FadeIn>