Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

barbajs

3 sites No security coverage
View on drupal.org

Barba JS integrates the Barba.js library with Drupal to deliver smooth,
SPA‑like page transitions with minimal setup. It auto‑loads a local build when
present, or falls back to the official CDN. The optional UI submodule lets you
control where and how the library is attached.

Features

  • Smooth, SPA‑like page transitions using Barba.js.
  • No jQuery dependency; lightweight UMD builds.
  • Automatic local vs. CDN loading with safe fallback.
  • Optional plugins: CSS, Prefetch, Router.
  • Granular control via “Barba JS UI” (themes, paths, plugins, variant).

Use this module when you want faster, more fluid navigation without adopting a
full SPA framework. Typical use cases include content sites, portfolios, blogs,
and marketing pages where page transitions improve perceived performance and UX.

Post-Installation

  1. Enable Barba JS (auto‑attaches Barba to frontend pages).
  2. (Optional) Enable Barba JS UI for configuration at
    Configuration → User interface → Barba
    (/admin/config/user-interface/barba/settings).
  3. Choose attach method: Local (if UMD files exist) or CDN.
  4. Select plugins (CSS / Prefetch / Router) and build variant (min/non‑min).
  5. Limit loading by theme or by path patterns as needed.
  6. Add your transition code in your theme or a custom module:
    barba.init({
      transitions: [{
        name: 'fade',
        async leave({ current }) {
          await gsap.to(current.container, { opacity: 0 });
        },
        enter({ next }) {
          return gsap.from(next.container, { opacity: 0 });
        }
      }]
    });

Additional Requirements

  • None. Barba.js can load from the bundled dist/ or jsDelivr CDN.
  • (Optional) Local install: place UMD builds under
    libraries/barba/dist/ (or multisite equivalent).
  • Barba JS UI (submodule): adds a configuration UI.
  • GSAP (optional): for richer animation timelines.

Similar projects

Modules that provide PJAX/AJAX navigation may offer partial page swaps, but
Barba JS focuses on transition orchestration, view lifecycle hooks, and plugin
ecosystem (CSS/Prefetch/Router) while staying library‑agnostic and lightweight.

Supporting this Module

Enjoying this project? You can support maintenance and new features by
sponsoring issues on the project queue or contacting the maintainer on
Drupal.org.

Community Documentation

Activity

Total releases
2
First release
Aug 2025
Latest release
8 months ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Aug 10, 2025
1.0.x-dev Dev Aug 10, 2025