BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/atroui/fade-in

Fade In

atroui/fade-in
FreeComponent

Scroll-triggered fade + rise using motion.

Install it

npx shadcn@latest add https://atroui.com/r/fade-in.json

Source

registry/default/ui/fade-in.tsxatroui.com/r/fade-in.json
1"use client"
2
3import * as React from "react"
4import { motion, useReducedMotion } from "motion/react"
5import type { HTMLMotionProps } from "motion/react"
6
7type FadeInProps = HTMLMotionProps<"div"> & {
8 y?: number
9 delay?: number
10 duration?: number
11 once?: boolean
12 /**
13 * Docs: animate on mount instead of scroll-reveal so the
14 * content is never stuck at opacity 0 inside a preview canvas.
15 */
16 preview?: boolean
17}
18
19/** Scroll reveal - opacity + small translate, critically damped, <300ms feel. */
20export function FadeIn({
21 y = 14,
22 delay = 0,
23 duration = 0.28,
24 once = true,
25 preview = false,
26 children,
27 ...props
28}: FadeInProps) {
29 const reduce = useReducedMotion()
30
31 if (reduce) {
32 return (
33 <div {...(props as React.HTMLAttributes<HTMLDivElement>)}>
34 {children as React.ReactNode}
35 </div>
36 )
37 }
38
39 if (preview) {
40 return (
41 <motion.div
42 initial={{ opacity: 0, y }}
43 animate={{ opacity: 1, y: 0 }}
44 transition={{
45 type: "spring",
46 bounce: 0,
47 duration,
48 delay,
49 }}
50 {...props}
51 >
52 {children}
53 </motion.div>
54 )
55 }
56
57 return (
58 <motion.div
59 initial={{ opacity: 0, y }}
60 whileInView={{ opacity: 1, y: 0 }}
61 viewport={{ once, margin: "0px", amount: 0.15 }}
62 transition={{
63 type: "spring",
64 bounce: 0,
65 duration,
66 delay,
67 }}
68 {...props}
69 >
70 {children}
71 </motion.div>
72 )
73}

What it pulls in

npm packages

  • motion

Files it writes

  • registry/default/ui/fade-in.tsx

Facts

Registry
atroui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

atroui.com atroui/atroui on GitHub Raw registry item This item as JSON

More from atroui

All 82 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
BreadcrumbsbreadcrumbsatrouiComponentsFree2 deps
ButtonbuttonatrouiComponentsFree2 deps
CardcardatrouiComponentsFreeno deps
Form Selectform-selectatrouiComponentsFree2 deps
Founder Avatarfounder-avataratrouiComponentsFree1 dep
LogologoatrouiComponentsFreeno deps
Mockup Framemockup-frameatrouiComponentsFreeno deps
ProseproseatrouiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex