Agent skill

Barba.js Skill: Page Transitions for AI Coding Agents

The Barba.js skill teaches an AI coding agent to add page transitions to multi-page sites with wrappers, containers, lifecycle hooks, views and GSAP animations.

Install
/plugin install extended-3d-scroll
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the Barba.js skill?

Barba.js is a skill in the freshtechbro design skills repository. It guides an AI coding agent to add fluid page transitions to a multi-page site with the Barba.js library: wrapper and container markup, the leave and enter lifecycle, sync crossfades, namespace rules, router and prefetch plugins, and common pitfalls.

Barba.js is a small library, described in the skill as about 7kb, that intercepts link clicks, fetches the next page and animates between the old and new content. The skill teaches an agent to set that up correctly.

The effect is that a multi-page site feels like a single page app while keeping separate URLs and server-rendered pages. The skill covers the markup, the lifecycle order and the mistakes that cause flicker or instant swaps.

The core pieces it explains

  • Wrapper: the outer element, with persistent header, nav and footer kept outside the container.
  • Container: the content that is replaced on each navigation.
  • Namespace: a name per page type, used in transition rules and views.
  • Hooks: eleven lifecycle points from before to after, plus once hooks for the first load.
  • Views: page-specific setup and cleanup logic.

Who the Barba.js skill is for

Best for

  • Portfolio, agency and brand sites that want animated navigation between pages.
  • Developers who already use GSAP and want leave and enter timelines.
  • Sites that need per-page scripts initialised and cleaned up on each transition.

Not for

  • Apps already built with a client-side router, where framework transitions fit better.
  • Sites where every page must load scripts and widgets exactly as a fresh load would, unless you re-initialise them.
  • Users who need the simplest possible site. Transitions add moving parts.

Use it with UiChemy

Barba.js changes how pages swap in a theme or custom front end. For building the pages themselves in WordPress, UiChemy Composer writes HTML, CSS and JS inside Elementor or Gutenberg. Click Get Started on uichemy.com.