Interface representing the configuration for animations.

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

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
animation?: Animations | Animations[]
targets?: any
childAnimations?: AnimationTarget[]
parentId?: string
animateOnLoad?: boolean
animateOnScroll?: boolean
scrollThreshold?: number