Skip to content

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
View on GitHub

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/router plugin, 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 -y

Installs 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

Similar to Barba Js

More Animation & Motion