
Ultimate Scroll Animation Library - Lightweight, powerful, wonderfully simple ✨
Works with React, Solid, Svelte, Vue, Lit, Angular, Vanilla JS and more
- 🎯 40+ animations (fade, zoom, flip with all directions)
- 📝 Text animations (split by word/letter)
- 🔢 Number counters
- 🎨 Text effects (shimmer, fluid)
- 📦 Only 8KB Gzipped
- 🚀 Zero dependencies
- ♾ 60fps performance
- 🪤 Web components supported
- 🔧 Framework agnostic
- ⚡ CDN powered by jsDelivr & Cloudflare
<script src="https://cdn.usal.dev/latest"></script>
npm install usal
# Framework-specific packages
npm install @usal/react # For React/Next.js
npm install @usal/solid # For Solid/SolidStart
npm install @usal/svelte # For Svelte/SvelteKit
npm install @usal/vue # For Vue/Nuxt
npm install @usal/lit # For Lit
npm install @usal/angular # For Angular
import { USALProvider } from '@usal/react';
<USALProvider>{children}</USALProvider>;
import { USALProvider } from '@usal/solid';
<USALProvider>{props.children}</USALProvider>;
import { usal } from '@usal/svelte';
// USAL auto-initializes globally
import { USALPlugin } from '@usal/vue';
createApp(App).use(USALPlugin).mount('#app');
//for Nuxt
export default defineNuxtConfig({
modules: ['@usal/vue/nuxt']
//...
import { usal } from '@usal/lit';
// USAL auto-initializes globally
import { USALModule } from '@usal/angular';
@Component({imports: [USALModule]})
export class AppComponent
<!-- Simple animation -->
<div data-usal="fade-u">Fade from bottom</div>
<!-- With modifiers -->
<div data-usal="zoomin duration-800 delay-200">Zoom in</div>
<!-- Complex animation -->
<div data-usal="flip-r delay-500 blur once">Flip from right</div>
Framework | Bundle Size (gzip) | React | Vue | Angular | Svelte | Solid | Lit | Vanilla |
---|---|---|---|---|---|---|---|---|
🚀 USAL.js | ~8KB | ✅ Native | ✅ Native | ✅ Native | ✅ Native | ✅ Native | ✅ Native | ✅ |
Motion One | Variable (~small) | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
GSAP | ~28KB | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Anime.js v4 | ~27KB | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Lottie | ~60KB | ✅ | ||||||
AOS | ~8KB | ❌ | ❌ | ❌ | ✅ | |||
SAL.js | ~2.7KB | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
Framework | Split (Letters/Words/Items) | Counters | Scroll Trigger | Timeline | SVG | Learning |
---|---|---|---|---|---|---|
USAL.js | ✅ Core | ✅ Core | ✅ Core | ✅ Core | ❌ | Very Easy |
Motion | ❌ | ❌ | ✅ Core | ✅ Core | Medium | |
GSAP | ✅ Plugin | ✅ Advanced | Complex | |||
Anime.js v4 | ✅ Core | ✅ Core | ✅ Core | ✅ Core | ✅ Core | Medium |
Lottie | ❌ | ✅ Core | ✅ Core | Complex | ||
AOS | ❌ | ❌ | ✅ Core | ❌ | ❌ | Very Easy |
SAL.js | ❌ | ❌ | ✅ Core | ❌ | ❌ | Very Easy |
Legend:
- ✅ Native/Core support
⚠️ Plugin/Wrapper required- ❌ Not supported
USAL.js was inspired by:
- AOS.js - Pioneering attribute-based animations
- SAL.js - Lightweight performance optimization
- Tailwind CSS - Utility-first naming conventions
MIT License © 2025 Italo Almeida (@italoalmeida0)