trigger-animations
Version:
A lightweight animation-on-scroll trigger utility built with **GSAP + ScrollTrigger**. Add animation attributes to your HTML elements and let the script handle the rest.
20 lines (19 loc) • 389 B
TypeScript
export type config = {
opacity?: number;
duration?: number;
ease?: string;
rotateY?: number;
rotateX?: number;
xPercent?: number;
yPercent?: number;
scale?: number;
delay?: number;
filter?: string;
};
export type scrollTriggerConfig = {
toggleActions?: string;
markers?: boolean;
start?: string;
end?: string;
scrub?: number;
};