UNPKG

@laubloch/scrolly-motion

Version:

Advanced scroll animation library with breakpoint support, timeline presets.

24 lines (23 loc) 781 B
/** * ScrollyMotion Animation * Handles animation updates, value calculations, and CSS application */ import type { ScrollElement, TimelineStep } from "../types"; export declare class Animation { /** * Update regular animation based on scroll progress */ updateAnimation(el: ScrollElement, progress: number): void; /** * Calculate timeline values for a given progress */ calculateTimelineValues(timeline: TimelineStep[], progress: number): Record<string, any>; /** * Update stagger animation for multiple children */ updateStaggerAnimation(el: ScrollElement, progress: number): void; /** * Apply animation values to an element */ applyAnimationValues(el: HTMLElement, values: Record<string, any>): void; }