UNPKG

rune-scroller

Version:

Lightweight, high-performance scroll animations for Svelte 5. ~2KB bundle, zero dependencies.

15 lines (14 loc) 384 B
import type { Action } from 'svelte/action'; import type { AnimateOptions } from './types'; /** * Svelte action for scroll animations * Triggers animation once when element enters viewport * * @example * ```svelte * <div use:animate={{ animation: 'fade-up', duration: 1000 }}> * Content * </div> * ``` */ export declare const animate: Action<HTMLElement, AnimateOptions>;