Rune Scroller

Rune Scroller

Enchanting scroll animations for Svelte 5, built with native performance and zero dependencies.

~3.4KB gzipped GPU Accelerated Built for Svelte 5
Scroll to explore

Getting Started

Install and start animating in seconds

Installation

Install the library using bun, npm, or pnpm:

$ bun add rune-scroller
Or with npm:
npm install rune-scroller

Basic Usage

Use the runeScroller action on any element:

<script>
import runeScroller from 'rune-scroller';
</script>
<div
use:runeScroller={animation: 'fade-in-up'}}
>
✨ This element will animate!
</div>

How It Works: Sentinel-Based Triggering

The secret to perfect animation timing

The Sentinel

The action creates an invisible sentinel - a tiny observer placed absolutely at the element's bottom. This sentinel stays fixed while the element animates, ensuring perfect scroll-triggered timing.

When you scroll, the sentinel enters the viewport, triggering the animation on the element above it. Completely invisible in production by default.

💡 Scroll down to see the animation examples below - sentinels are visible in debug mode!

parent (position: relative)
<div use:runeScroller>
Your animated content
</div>
Sentinel (absolute positioning)

✓ Stays fixed while element animates
✓ Invisible by default (1px height)
✓ Visible in Examples section with debug mode enabled

⏱️

Perfect Timing

Animations trigger at exactly the right moment, every time

📐

Responsive

Works consistently across all screen sizes and content heights

Performance

GPU-accelerated CSS with IntersectionObserver efficiency

Fade Animations

Fade In

Fade Up

Fade Down

Fade Left

Fade Right

Zoom Animations

Zoom In

Zoom Out

Zoom Up

Zoom Left

Zoom Right

Transform Animations

Flip

Flip X

Slide Rotate

Bounce In

Why Choose Rune Scroller?

Compare with other scroll animation libraries

FeatureRune ScrollerAOS Library
Bundle Size (gzipped)1.9 KB ⚡4 KB
Svelte Projects Overhead+1.9 KB+4 KB
Size Advantage52% Smaller-
Animation MethodGPU Accelerated CSSJavaScript
DependenciesZeroZero
Svelte 5 Optimized✓ Yes✗ No
Code OptimizationsUtility ExtractionNone
Memory Leak Prevention✓ Built-in-
Animations1415+

Rune Scroller

Enchanting scroll animations for Svelte 5. Built with native performance and zero dependencies.

Resources

Creator

Made by LudoLoops

At LeLab

© 2026 Rune Scroller. All rights reserved.

Forged with ⚡ for the modern web