effex-monorepo
    Preparing search index...

    Interface AnimatedConfig

    Configuration for animated — a mount-once wrapper for a single element that applies enter animations on mount (or on hydration when intro is set) and can be sequenced across siblings via animate.group.

    Only supports enter-related animation options because the element is never removed; the type surface makes that explicit via EnterOnlyAnimationOptions. Group membership lives inside animate.group (same shape as each/when/match) so a pure-CSS element that only wants to sequence writes { animate: { group: g0 } }.

    interface AnimatedConfig {
        animate?: EnterOnlyAnimationOptions;
        container?: () => Element<HTMLElement | SVGElement, never, never>;
        intro?: boolean;
    }
    Index

    Properties

    Enter-lifecycle animation options (no exit).

    container?: () => Element<HTMLElement | SVGElement, never, never>

    Optional custom container element. If not provided, defaults to a div with display: contents.

    intro?: boolean

    Re-animate this element's SSR/SSG-rendered content on hydration. See EachConfig.intro for the full contract and FOUC caveat.