Skip to Content
Neshel-UI
Animations (experimental)Reference

@neshel-ui/animations/entrance

Every export of @neshel-ui/animations/entrance, generated from its declarations.

Experimental and not on npm

@neshel-ui/animations is a private package (0.0.0). It cannot be installed, and its API may change before a first publication. These pages document what exists in the repository.

Signatures, members and defaults, generated from the built declarations. For explanations and examples read the guide.

  • Reveal component
    <Options extends EntranceOptions, Resolved>({ preset, options, appear, replayKey, asChild, conflicts, className, ref, children, ...rest }: RevealProps<Options, Resolved>): Element
  • Stagger component
    <Options extends EntranceOptions, Resolved>({ preset, options, interval, order, maxStagger, delay, reducedMotion, onFinish, appear, replayKey, asChild, conflicts, className, ref, children, ...rest }: StaggerProps<Options, Resolved>): Element
  • blurIn const
    EffectDefinition<BlurInOptions, ResolvedEntrance<{ amount: number; }>>
  • clipCircle const
    EffectPreset<ClipRevealOptions, ResolvedEntrance<{ shape: "inset" | "circle"; direction: EntranceDirection; }>>
  • clipReveal const
    EffectDefinition<ClipRevealOptions, ResolvedEntrance<{ shape: "inset" | "circle"; direction: EntranceDirection; }>>
  • entranceEffects const

    Every entrance definition in catalogue order (E01–E11), for explicit registries.

    readonly AnyEffectDefinition[]
  • fadeDown const
    EffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>
  • fadeIn const
    EffectDefinition<EntranceOptions, ResolvedEntrance<null>>
  • fadeLeft const
    EffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>
  • fadeRight const
    EffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>
  • fadeSlide const
    EffectDefinition<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>
  • fadeUp const
    EffectPreset<FadeSlideOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; }>>
  • flipIn const
    EffectDefinition<FlipInOptions, ResolvedEntrance<{ axis: "x" | "y"; angle: number; perspective: number; }>>
  • flipX const
    EffectPreset<FlipInOptions, ResolvedEntrance<{ axis: "x" | "y"; angle: number; perspective: number; }>>
  • flipY const
    EffectPreset<FlipInOptions, ResolvedEntrance<{ axis: "x" | "y"; angle: number; perspective: number; }>>
  • maskWipe const
    EffectDefinition<MaskWipeOptions, ResolvedEntrance<{ direction: EntranceDirection; softness: number; }>>
  • rotateIn const
    EffectDefinition<RotateInOptions, ResolvedEntrance<{ angle: number; }>>
  • scaleIn const
    EffectDefinition<ScaleInOptions, ResolvedEntrance<{ from: number; }>>
  • springIn const
    EffectDefinition<SpringInOptions, ResolvedEntrance<{ direction: EntranceDirection; distance: number; from: number; }>>
  • stagger const
    Readonly<EffectDefinition<StaggerOptions<EntranceOptions>, ResolvedStagger>>
  • zoomIn const
    EffectDefinition<ZoomInOptions, ResolvedEntrance<{ from: number; }>>
  • BlurInOptions interface

    BlurInOptions

    E05 — Blur in.

    BlurInOptions
    PropTypeDefaultDescription
    amountnumber—Start blur radius in px (0–40, default 12).
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • ClipRevealOptions interface

    ClipRevealOptions

    E06 — Clip reveal (inset from an edge, or a circle from the centre).

    ClipRevealOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    directionEntranceDirection"up"Direction the inset reveal travels (default "up": revealed from the bottom edge upward).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
    shape"inset" | "circle"—"inset" (default) or "circle".
  • EntranceOptions interface

    EntranceOptions

    Options shared by every entrance effect.

    EntranceOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • FadeSlideOptions interface

    FadeSlideOptions

    E02 — Fade + slide.

    FadeSlideOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    directionEntranceDirection"up"Direction of travel (default "up").
    distancenumber—Travel distance in px (0–200, default 16).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • FlipInOptions interface

    FlipInOptions

    E09 — Flip in about the X or Y axis (perspective inside the composed transform; no wrapper).

    FlipInOptions
    PropTypeDefaultDescription
    anglenumber—Start angle in degrees (-120–120, default 70).
    appearbooleantruePlay 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").
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    perspectivenumber—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • MaskWipeOptions interface

    MaskWipeOptions

    E07 — Gradient-mask wipe.

    MaskWipeOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    directionEntranceDirection"right"Direction of the wipe (default "right": revealed from the left edge).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
    softnessnumber—Width of the soft edge as a percentage of the element (0–100, default 25).
  • RevealProps interface

    RevealProps

    RevealProps
    PropTypeDefaultDescription
    appearRevealAppear——
    asChildboolean—Apply the effect to the single child element instead of rendering a <div>.
    childrenReactNode——
    conflictsConflictPolicy—Conflict reporting for exclusive channels (default: warn in development).
    optionsNoInfer<Partial<Options>>—Options merged over the preset's options.
    preset(required)PresetInput<Options, Resolved>—An entrance definition (fadeIn, clipReveal, …) or preset (fadeUp, clipCircle, …).
    refRef<HTMLDivElement>——
    replayKeystring | number—Changing this value replays the entrance.

    Also accepts the props of: React DOM attributes.

  • RotateInOptions interface

    RotateInOptions

    E08 — Rotate in.

    RotateInOptions
    PropTypeDefaultDescription
    anglenumber—Start rotation in degrees (-180–180, default -6).
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • ScaleInOptions interface

    ScaleInOptions

    E03 — Scale in.

    ScaleInOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    fromnumber—Start scale (0.3–1, default 0.92).
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • SpringInOptions interface

    SpringInOptions

    E11 — Spring entrance with overshoot (engine spring; interruptible).

    SpringInOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    directionEntranceDirection——
    distancenumber—Travel distance in px (0–200, default 24).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    fromnumber—Start scale (0.3–1, default 0.9).
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
    springSpringOptions | SpringPreset"bouncy"Spring (default "bouncy"); replaces duration/easing.
  • StaggerOptions interface

    StaggerOptions

    StaggerOptions
    PropTypeDefaultDescription
    appearboolean——
    delaynumber—Delay before the first child, in ms (0–5000, default 0).
    holdboolean—Forwarded to every child (see EntranceOptions.hold).
    intervalnumber—Delay between consecutive children in ms (0–1000, default 60).
    maxStaggernumber—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).
    optionsPartial<Options>—Options merged over the preset's options for every child (except delay, appear, replay).
    orderStaggerOrder"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).
    reducedMotionReducedMotion——
    replaystring | number | boolean——
  • StaggerProps interface

    StaggerProps

    StaggerProps
    PropTypeDefaultDescription
    appearRevealAppear——
    asChildboolean—Apply the effect to the single child element instead of rendering a <div>.
    childrenReactNode——
    conflictsConflictPolicy—Conflict reporting for exclusive channels (default: warn in development).
    delaynumber0Delay before the first child in ms (default 0).
    intervalnumber60Delay between children in ms (default 60).
    maxStaggernumber900Upper bound of the total stagger in ms (default 900).
    onFinish(status: MotionResult["status"]) => void——
    optionsNoInfer<Partial<Options>>——
    orderStaggerOrder——
    preset(required)PresetInput<Options, Resolved>—Entrance applied to every element child.
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——
    replayKeystring | number——

    Also accepts the props of: React DOM attributes.

  • ZoomInOptions interface

    ZoomInOptions

    E04 — Zoom out → in (starts larger and settles).

    ZoomInOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    fromnumber—Start scale (1–2, default 1.12).
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • EntranceDirection type
    "up" | "down" | "left" | "right"
  • FadeInOptions type

    FadeInOptions

    E01 — Fade in.

    FadeInOptions
    PropTypeDefaultDescription
    appearbooleantruePlay when attached (default true). <Reveal> sets it to false while hydrating server-rendered markup, so visible content is not hidden again.
    continuousboolean—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.
    delaynumber—Delay before the entrance starts, in ms (0–5000, default 0).
    durationnumber | DurationPreset320Duration of tween entrances in ms or a motionDefaults.duration preset (default 320).
    easingEasing | EasingPreset"decelerate"Easing of tween entrances (default "decelerate").
    holdboolean—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".
    progressMotionValue—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, delay and onFinish are then ignored; reduced motion keeps the declared behaviour.
    reducedMotionReducedMotion"user"Reduced-motion policy (default "user").
    replaystring | number | boolean—Changing this value replays the entrance from the start.
  • RevealAppear type

    When the entrance plays on mount: client-only mounts (default), always, or never (replay only).

    "client" | "always" | "never"
  • StaggerOrder type
    "start" | "end" | "center"
Edit on GitHub