Interface representing the configuration for an animation.

interface AnimationConfig {
    loop?: number | boolean;
    autoplay?: boolean;
    direction?: string;
    duration?: number;
    delay?: number;
    round?: number | boolean;
    keyframes?: readonly Animate[];
    easing?: string | (el: HTMLElement) => string;
    childAnimations?: AnimationTarget[];
    parentId?: string;
    animateOnLoad?: boolean;
    animateOnScroll?: boolean;
    scrollThreshold?: number;
    animation?: Animations | Animations[];
    targets?: any;
    [key: string]: any;
}

Hierarchy (View Summary)

Indexable

  • [key: string]: any

Properties

loop?: number | boolean
autoplay?: boolean
direction?: string
duration?: number
delay?: number
round?: number | boolean
keyframes?: readonly Animate[]
easing?: string | (el: HTMLElement) => string
childAnimations?: AnimationTarget[]
parentId?: string
animateOnLoad?: boolean
animateOnScroll?: boolean
scrollThreshold?: number
animation?: Animations | Animations[]
targets?: any