barba-js

Implement Barba.js page transitions with GSAP and lifecycle hooks.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/fyunusa/wazobia-banks-frontend --skill barba-js-fyunusa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: barba-js
Source: https://github.com/fyunusa/wazobia-banks-frontend/tree/main/claudedesignskills-main/plugins/bundles/extended-3d-scroll/skills/barba-js
Command: npx skills add https://github.com/fyunusa/wazobia-banks-frontend --skill barba-js-fyunusa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @barba/core, gsap, vite, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill solves the jarring experience of full-page reloads in multi-page websites by hijacking navigation to perform smooth, animated transitions between pages.

Core Features & Use Cases

  • Fluid Transitions: Implements seamless page-to-page animations using GSAP and Barba.js.
  • Lifecycle Management: Provides precise control over transition phases like leave, enter, and view-specific initialization.
  • Use Case: Use this skill when you want to transform a standard multi-page website into a high-performance, app-like experience with custom slide, fade, or curtain transition effects.

Quick Start

Use the barba-js skill to generate a new project structure with a fade transition by running the project setup script in the scripts directory.

Frequently Asked Questions about barba-js

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add SPA-like page transitions to a multi-page website?

SPA-like page transitions intercept standard navigation to animate between pages, eliminating jarring full-page reloads. This skill implements Barba.js to manage asynchronous page transitions and view-specific lifecycle logic for a fluid user experience.

Do I need GSAP to animate page transitions with Barba.js?

Yes, GSAP is required for high-performance rendering and DOM manipulation during navigation events. This skill integrates GSAP with Barba.js to execute complex animation sequences and custom transition effects like slide, fade, or curtain reveals.

How does Barba.js handle view-specific logic during page transitions?

Barba.js handles view-specific logic through lifecycle hook management, providing precise control over transition phases. You can execute custom initialization scripts during the leave and enter phases for each route in your multi-page web application.

Can I use this page transition skill with a Vite build setup?

Yes, Vite is a supported dependency for this skill. You can generate a new project structure with a fade transition by running the setup script in the scripts directory, which integrates smoothly with your Vite environment.

What is the best way to create custom transition effects like slide or fade for multi-page sites?

The best way to create custom transition effects is combining Barba.js for navigation hijacking with GSAP for animation. This skill supports complex animation sequences, allowing you to transform multi-page websites into high-performance, app-like experiences.

When should I avoid using Barba.js for web animation and page transitions?

You should avoid using Barba.js page transitions if your project is a true single-page application that already handles routing internally, or if your website requires synchronous full-page reloads for specific server-side state management tasks.