@laubloch/scrolly-motion
Version:
Advanced scroll animation library with breakpoint support, timeline presets.
32 lines (31 loc) • 1.14 kB
TypeScript
/**
* ScrollyMotion Element Manager
* Manages the lifecycle of scroll elements, including discovery, initialization,
* configuration parsing, and state management.
*/
import type { ScrollAnimatorConfig, ScrollElement } from "../types/index.js";
import type { Parser } from "./Parser";
import type { Animation } from "./Animation";
import type { ThemeManager } from "./ThemeManager";
export declare class ElementManager {
private elements;
private selector;
private config;
private parser;
private animation;
private themeManager;
private mediaQueries;
private intersectionObserver;
private activeElements;
constructor(config: ScrollAnimatorConfig, parser: Parser, animation: Animation, themeManager: ThemeManager, mediaQueries: Map<string, MediaQueryList>);
private handleIntersection;
discoverElements(): void;
measureElements(): void;
private _applyInitialVisualState;
private _parseElementConfig;
private _setupAnimationConfig;
getElements(): ScrollElement[];
getActiveElements(): ScrollElement[];
destroy(): void;
private getActiveStaggerConfig;
}