@neshel-ui/animations/entrance
Every export of @neshel-ui/animations/entrance, generated from its declarations.
Experimental and not on npm
Signatures, members and defaults, generated from the built declarations. For explanations and examples read the guide.
Revealcomponent<Options extends EntranceOptions, Resolved>({ preset, options, appear, replayKey, asChild, conflicts, className, ref, children, ...rest }: RevealProps<Options, Resolved>): ElementStaggercomponent<Options extends EntranceOptions, Resolved>({ preset, options, interval, order, maxStagger, delay, reducedMotion, onFinish, appear, replayKey, asChild, conflicts, className, ref, children, ...rest }: StaggerProps<Options, Resolved>): ElementblurInconstEffectDefinition<BlurInOptions, ResolvedEntrance<{ amount: number; }>>clipCircleconstEffectPreset<ClipRevealOptions, ResolvedEntrance<{ shape: "inset" | "circle"; direction: EntranceDirection; }>>clipRevealconstEffectDefinition<ClipRevealOptions, ResolvedEntrance<{ shape: "inset" | "circle"; direction: EntranceDirection; }>>entranceEffectsconstEvery entrance definition in catalogue order (E01–E11), for explicit registries.
readonly AnyEffectDefinition[]fadeDownconstEffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>fadeInconstEffectDefinition<EntranceOptions, ResolvedEntrance<null>>fadeLeftconstEffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>fadeRightconstEffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>fadeSlideconstEffectDefinition<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>fadeUpconstEffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>flipInconstEffectDefinition<FlipInOptions, ResolvedEntrance<{ axis: "x" | "y"; angle: number; perspective: number; }>>flipXconstEffectPreset<FlipInOptions, ResolvedEntrance<{ axis: "x" | "y"; angle: number; perspective: number; }>>flipYconstEffectPreset<FlipInOptions, ResolvedEntrance<{ axis: "x" | "y"; angle: number; perspective: number; }>>maskWipeconstEffectDefinition<MaskWipeOptions, ResolvedEntrance<{ direction: EntranceDirection; softness: number; }>>rotateInconstEffectDefinition<RotateInOptions, ResolvedEntrance<{ angle: number; }>>scaleInconstEffectDefinition<ScaleInOptions, ResolvedEntrance<{ from: number; }>>springInconstEffectDefinition<SpringInOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; from: number; }>>staggerconstReadonly<EffectDefinition<StaggerOptions<EntranceOptions>, ResolvedStagger>>zoomInconstEffectDefinition<ZoomInOptions, ResolvedEntrance<{ from: number; }>>BlurInOptionsinterfaceBlurInOptions
E05 — Blur in.
BlurInOptions Prop Type Default Description amount number— Start blur radius in px (0–40, default 12). appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. ClipRevealOptionsinterfaceClipRevealOptions
E06 — Clip reveal (inset from an edge, or a circle from the centre).
ClipRevealOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). direction EntranceDirection"up"Direction the inset reveal travels (default "up": revealed from the bottom edge upward).duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. shape "inset" | "circle"— "inset"(default) or"circle".EntranceOptionsinterfaceEntranceOptions
Options shared by every entrance effect.
EntranceOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. FadeSlideOptionsinterfaceFadeSlideOptions
E02 — Fade + slide.
FadeSlideOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). direction EntranceDirection"up"Direction of travel (default "up").distance number— Travel distance in px (0–200, default 16). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. FlipInOptionsinterfaceFlipInOptions
E09 — Flip in about the X or Y axis (perspective inside the composed transform; no wrapper).
FlipInOptions Prop Type Default Description angle number— Start angle in degrees (-120–120, default 70). appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.axis "x" | "y""x"Rotation axis (default "x").continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".perspective number— Perspective distance in px (200–5000, default 800). playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. MaskWipeOptionsinterfaceMaskWipeOptions
E07 — Gradient-mask wipe.
MaskWipeOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). direction EntranceDirection"right"Direction of the wipe (default "right": revealed from the left edge).duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. softness number— Width of the soft edge as a percentage of the element (0–100, default 25). RevealPropsinterfaceRevealProps
RevealProps Prop Type Default Description appear RevealAppear— — asChild boolean— Apply the effect to the single child element instead of rendering a <div>.children ReactNode— — conflicts ConflictPolicy— Conflict reporting for exclusive channels (default: warn in development). options NoInfer<Partial<Options>>— Options merged over the preset's options. preset(required) PresetInput<Options, Resolved>— An entrance definition ( fadeIn,clipReveal, …) or preset (fadeUp,clipCircle, …).ref Ref<HTMLDivElement>— — replayKey string | number— Changing this value replays the entrance. Also accepts the props of: React DOM attributes.
RotateInOptionsinterfaceRotateInOptions
E08 — Rotate in.
RotateInOptions Prop Type Default Description angle number— Start rotation in degrees (-180–180, default -6). appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. ScaleInOptionsinterfaceScaleInOptions
E03 — Scale in.
ScaleInOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").from number— Start scale (0.3–1, default 0.92). hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. SpringInOptionsinterfaceSpringInOptions
E11 — Spring entrance with overshoot (engine spring; interruptible).
SpringInOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). direction EntranceDirection— — distance number— Travel distance in px (0–200, default 24). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").from number— Start scale (0.3–1, default 0.9). hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. spring SpringOptions | SpringPreset"bouncy"Spring (default "bouncy"); replacesduration/easing.StaggerOptionsinterfaceStaggerOptions
StaggerOptions Prop Type Default Description appear boolean— — delay number— Delay before the first child, in ms (0–5000, default 0). hold boolean— Forwarded to every child (see EntranceOptions.hold).interval number— Delay between consecutive children in ms (0–1000, default 60). maxStagger number— Upper bound of the total stagger in ms; the interval shrinks to fit (0–3000, default 900). onFinish (status: MotionResult["status"]) => void— Called once when every child's run has settled (with the last status). options Partial<Options>— Options merged over the preset's options for every child (except delay,appear,replay).order StaggerOrder"start"Which child starts first (default "start").playback "in" | "out"— Forwarded to every child (see EntranceOptions.playback).preset(required) PresetInput<Options, any>— Entrance applied to every child (an entrance definition or preset). reducedMotion ReducedMotion— — replay string | number | boolean— — StaggerPropsinterfaceStaggerProps
StaggerProps Prop Type Default Description appear RevealAppear— — asChild boolean— Apply the effect to the single child element instead of rendering a <div>.children ReactNode— — conflicts ConflictPolicy— Conflict reporting for exclusive channels (default: warn in development). delay number0Delay before the first child in ms (default 0). interval number60Delay between children in ms (default 60). maxStagger number900Upper bound of the total stagger in ms (default 900). onFinish (status: MotionResult["status"]) => void— — options NoInfer<Partial<Options>>— — order StaggerOrder— — preset(required) PresetInput<Options, Resolved>— Entrance applied to every element child. reducedMotion ReducedMotion— — ref Ref<HTMLDivElement>— — replayKey string | number— — Also accepts the props of: React DOM attributes.
ZoomInOptionsinterfaceZoomInOptions
E04 — Zoom out → in (starts larger and settles).
ZoomInOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").from number— Start scale (1–2, default 1.12). hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. EntranceDirectiontype"up" | "down" | "left" | "right"FadeInOptionstypeFadeInOptions
E01 — Fade in.
FadeInOptions Prop Type Default Description appear booleantruePlay when attached (default true). <Reveal>sets it to false while hydrating server-rendered markup, so visible content is not hidden again.continuous boolean— A replay that interrupts a running run continues from the current progress with the remaining fraction of the duration, instead of restarting from the start pose. Default false. delay number— Delay before the entrance starts, in ms (0–5000, default 0). duration number | DurationPreset320Duration of tween entrances in ms or a motionDefaults.durationpreset (default 320).easing Easing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").hold boolean— While no run plays, keep the start pose (content hidden until a replay). Ignored when motion is reduced and after beforeprint;<Reveal>never sets it. Default false.onFinish (status: MotionResult["status"]) => void— Called once per run: "completed","cancelled"or"interrupted".playback "in" | "out""in"playback: "out"plays end -> start and then holds the start pose (reverse on leave). Default"in".progress MotionValue— An external progress motion value (0 = start pose, 1 = visible) renders the entrance instead of its own clock — seekable, scrubbable, reversible. appear,replay,hold,playback,delayandonFinishare then ignored; reduced motion keeps the declared behaviour.reducedMotion ReducedMotion"user"Reduced-motion policy (default "user").replay string | number | boolean— Changing this value replays the entrance from the start. RevealAppeartypeWhen the entrance plays on mount: client-only mounts (default), always, or never (replay only).
"client" | "always" | "never"StaggerOrdertype"start" | "end" | "center"