Barba Js
Barba.js page transition library that makes multi-page sites feel like SPAs with GSAP-driven animations.
- CCM score
- 51 of 100
- skills.sh installs
- 2.8K
- GitHub stars
- 1.5K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the wrapper, container, and namespace DOM structure, the async and sync transition lifecycles, and 11 lifecycle hooks
- Includes view-based logic keyed by
data-barba-namespace, plus conditional transition rules for fade, crossfade, and slide effects - Provides a
@barba/routerplugin, prefetching with AJAX, and a 7kb footprint with framework-agnostic hooks - Designed for multi-page websites that need animated route changes without full page reloads, often alongside gsap-scrolltrigger
Install
$ npx -y skills add freshtechbro/claudedesignskills --skill barba-js -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Barba.js
Modern page transition library for creating fluid, smooth transitions between website pages. Barba.js makes multi-page websites feel like Single Page Applications (SPAs) by hijacking navigation and managing transitions without full page reloads.
Overview
Barba.js is a lightweight (7kb minified and compressed) JavaScript library that intercepts navigation between pages, fetches new content via AJAX, and smoothly transitions between old and new containers. It reduces page load delays and HTTP requests while maintaining the benefits of traditional multi-page architecture.
Core Features:
- Smooth page transitions without full reloads
- Lifecycle hooks for precise control over transition phases
- View-based logic for page-specific behaviors
- Built-in routing with @barba/router plugin
- Extensible plugin system
- Small footprint and high performance
- Framework-agnostic (works with vanilla JS, GSAP, anime.js, etc.)
Core Concepts
1. Wrapper, Container, and Namespace
Barba.js uses a specific DOM structure to manage transitions:
Details
- Repository
- github.com/freshtechbro/claudedesignskills
- Categories
- Animation & Motion, Frontend & UI Code
- First seen
- Jun 3, 2026
More from freshtechbro/claudedesignskills
All 22- Aframe Webxr2.7K
- Playcanvas Engine2.7K
- Motion Framer7.2K
- Threejs Webgl5.7K
- React Three Fiber4.6K
- Blender Web Pipeline4.5K
- Web3d Integration Patterns3.9K
- Lottie Animations3.4K
- Modern Web Design3.4K
- Animated Component Libraries3.4K
- Gsap Scrolltrigger3.4K
- Spline Interactive3.4K
- Animejs3.3K
- Lightweight 3d Effects3.2K
- Rive Interactive3.1K
- Babylonjs Engine3K
- Locomotive Scroll3K
- Pixijs 2d3K
- React Spring Physics2.9K
- Scroll Reveal Libraries2.9K
- Substance 3d Texturing2.9K
Similar to Barba Js
More Animation & Motionvercel-react-view-transitionsvercel-labs/agent-skills209.8K installsNative-feeling page, route, and shared-element animations via React's View Transition API, with no third-party animation library.
animejsfreshtechbro/claudedesignskills3.3K installsVersatile JavaScript animation engine covering DOM, CSS, SVG, and plain objects, independent of any framework.
gsap-scrolltriggerfreshtechbro/claudedesignskills3.4K installsComprehensive GSAP and ScrollTrigger guide for tweens, timelines, scroll-linked animation, and pinning.
view-transitionspatternsdev/skills727 installsTeaches the View Transitions API to animate DOM changes and page navigations without custom animation code.
solidjssuryavirkapur/skills457 installsReactive web UI framework with fine-grained signals, stores, and control-flow components, plus SolidStart.
gsap-frameworksgreensock/gsap-skills84.2K installsLifecycle-safe GSAP patterns for Vue, Nuxt, and Svelte, scoped with gsap.context and reverted on unmount.