stax-monorepo
    Preparing search index...

    Variable AnimationConst

    Animation: {
        awaitDone: (g: AnimationGroup) => Effect<void>;
        group: () => Effect<AnimationGroup>;
        moveTranslate: (delta: MoveDelta) => string;
        moveTranslate3d: (delta: MoveDelta) => string;
        moveTranslateY: (delta: MoveDelta) => string;
        parallel: {
            (count: number): Effect<AnimationGroup[]>;
            (
                count: number,
                options: GroupOptions,
            ): Effect<AnimationGroup[], never, Scope>;
        };
        sequence: {
            (count: number): Effect<AnimationGroup[]>;
            (
                count: number,
                options: GroupOptions,
            ): Effect<AnimationGroup[], never, Scope>;
        };
        skip: (g: AnimationGroup) => Effect<void>;
    } = ...

    Group choreography primitives — see ./groups.ts for the full contract. Plus the built-in FLIP invert helpers used with each({ animate: { move } }).

    Type Declaration

    • ReadonlyawaitDone: (g: AnimationGroup) => Effect<void>
    • Readonlygroup: () => Effect<AnimationGroup>
    • moveTranslate: (delta: MoveDelta) => string

      FLIP invert helper — the vanilla 2D translate. (delta) => \translate(${delta.x}px, ${delta.y}px)``

    • moveTranslate3d: (delta: MoveDelta) => string

      FLIP invert helper — 3D translate, promotes the element to its own compositor layer for smoother playback on long lists. Preferred default.

    • moveTranslateY: (delta: MoveDelta) => string

      FLIP invert helper — vertical-only translate. Good pick for column layouts (checklists, feeds) where horizontal drift would be noise.

    • Readonlyparallel: {
          (count: number): Effect<AnimationGroup[]>;
          (
              count: number,
              options: GroupOptions,
          ): Effect<AnimationGroup[], never, Scope>;
      }
    • Readonlysequence: {
          (count: number): Effect<AnimationGroup[]>;
          (
              count: number,
              options: GroupOptions,
          ): Effect<AnimationGroup[], never, Scope>;
      }
    • Readonlyskip: (g: AnimationGroup) => Effect<void>