react-nice-scroll
Version:
A React library to smooth scroll and scroll-based animations.
4 lines (3 loc) • 552 B
TypeScript
import { gsap } from 'gsap';
export declare const gellyAnimation: (element: HTMLDivElement | string, velocity: number, axis: 'skewY' | 'skewX', intensity: number, min: number, max: number, duration: number, ease: string) => gsap.core.Tween;
export declare const parallaxAnimation: (element: HTMLElement | string, trigger: gsap.DOMTarget | string, scroller: HTMLElement | HTMLDivElement, start: string, end: string, axis: 'y' | 'x', fromPercent: number, toPercent: number, containerAnimation?: gsap.core.Animation | undefined) => gsap.core.Timeline;