Frontend en animatie

Barba.js

Seamless page transitions. This makes a website feel like a cohesive experience rather than a collection of separate pages.

Barba.js

Part of our stack. We choose the right tools for each project, not the other way around.

Barba.js loads the next page in the background and animates the transition without the browser having to reload the entire page. The result feels like an app: no white screens, no flashes, just a fluid movement from one page to the next.

What Barba.js is

A lightweight JavaScript library that takes over site navigation. When you click a link, Barba fetches the new page, swaps the content, and gives you control over what happens in between. We fill that gap with GSAP.

What we use it for

Sites where experience matters: restaurants, brands, portfolios, and sites that need to make a statement. Bistrobar Beaune uses it. This site uses it, with a pixel transition tailored to the brand. See animation and interaction.

Things to keep in mind

Third-party scripts must be re-initialized after every transition: forms, analytics, embeds, and Webflow's own interactions. If you don't, a form will stop working after the second page. We have a standard setup for this that cleanly shuts down and restarts every component. The navigation, page title, and theme color must also update accordingly. That is all included in our script.

How it fits into our stack

On a Webflowsite, using GSAP for animation and Lenis for scrolling, all in one script hosted on Vercel. Analytics via Google Analytics receives a page view for every transition.

When not to use it

For portals and applications with many forms and login requirements. In those cases, it adds more complexity than value. Also for sites where loading speed is more important than the user experience.

How can we help? 

DeDigitaal takes your privacy seriously, so we only use your personal data for administrative purposes and to provide the products and services you request from us. You can unsubscribe at any time.

Thank you. We have received your message.
You will receive a response within 24 hours.
We have received your message and you can expect a response within one business day.
Oops! Something went wrong while submitting the form.
Dorus van Keulen, DeDigitaal

Want to know if this is a good fit for your project?

We choose the tool to fit the problem, not the other way around. A thirty-minute conversation will make that clear.

FAQ

Frequently asked questions

Is Barba.js goed voor SEO?

Ja. Elke pagina bestaat gewoon als HTML en is indexeerbaar. Barba verandert alleen hoe een bezoeker ernaartoe navigeert.

Werkt de terugknop met Barba.js?

Ja. De terugknop van de browser werkt met Barba.js, met dezelfde overgang als bij vooruit navigeren.

Werkt analytics nog met Barba.js?

Ja, als je het goed inricht. Omdat de pagina bij Barba.js niet herlaadt, sturen wij per overgang een paginaweergave naar Google Analytics.

Wat kost het toevoegen van Barba.js?

Barba.js is meestal onderdeel van het animatiewerk in een project. Achteraf toevoegen aan een bestaande site is een paar dagen werk, afhankelijk van hoeveel scripts er draaien.

Werkt Barba.js met Webflow-formulieren?

Ja, mits de formulieren na elke paginaovergang opnieuw worden gestart. Ons script doet dat, net als voor analytics en embeds.