rune-scroller
Version:
Lightweight, high-performance scroll animations for Svelte 5. ~2KB bundle, zero dependencies.
17 lines (16 loc) • 477 B
TypeScript
import type { Snippet } from 'svelte';
import { type AnimationType } from './animations';
import './animations.css';
interface Props {
animation?: AnimationType;
threshold?: number;
rootMargin?: string;
offset?: number;
duration?: number;
delay?: number;
once?: boolean;
children: Snippet;
}
declare const BaseAnimated: import("svelte").Component<Props, {}, "">;
type BaseAnimated = ReturnType<typeof BaseAnimated>;
export default BaseAnimated;