@laubloch/scrolly-motion
Version:
Advanced scroll animation library with breakpoint support, timeline presets.
15 lines (14 loc) • 755 B
TypeScript
/**
* ScrollyMotion Parser
* Handles parsing of animations, breakpoints, timelines, and stagger configurations
*/
import type { AnimationConfig, StaggerConfig, MultiBreakpointStaggerConfig, TimelineStep } from "../types/index.js";
import type { PluginManager } from "./PluginManager";
export declare class Parser {
private animationParser;
private staggerParser;
constructor(timelinePresets: Map<string, TimelineStep[]>, mediaQueries: Map<string, MediaQueryList>, pluginManager: PluginManager);
parseAnimation(animationStr: string): AnimationConfig | null;
parseStaggerAnimation(animationStr: string, breakpoint?: string): StaggerConfig | null;
parseMultiBreakpointStagger(animationStr: string): MultiBreakpointStaggerConfig;
}