Fade In
MotionMITFade-in entrance primitive with configurable delay and duration.
bun add @otfdashkit/ui
Preview
Fade InMotion
Loading Storybook preview…
Code
@otfdashkit/uiimport { FadeIn } from '@otfdashkit/ui'
export function Example() {
return (
<FadeIn>
<div className="rounded-lg border border-border bg-card p-6">
<p className="text-foreground">This content fades in on mount</p>
</div>
</FadeIn>
)
}
Free with the SDK. This pattern ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the FadeIn source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| childrenrequired | ReactNode | ||
| delay | number | 0 | |
| duration | number |