Webflow.push()
.afterEnter
hook to re-init Webflow interactions (Webflow.require("ix2").init(); Webflow.ready();
).data-barba="wrapper"
and data-barba="container"
attributes.afterEnter
to avoid transition glitches.Your Barba.js page transition may be requiring two clicks due to improper initialization timing, Webflow interactions not resetting, or duplicated event bindings.
barba.init()
itself.barba.init()
inside Webflow’s Webflow.push(function() {...})
unless you’re handling reinit after each transition.afterEnter
hook to re-run Webflow’s interaction scripts.afterEnter
: Webflow.require("ix2").init();
followed by Webflow.ready();
.document.querySelectorAll(...).forEach(...)
) inside Barba’s lifecycle hooks without removing previous listeners.data-barba="container"
and data-barba="wrapper"
data-barba="container"
, and your global wrapper element must have data-barba="wrapper"
.afterEnter
(e.g., scroll position, visibility).afterEnter
lifecycle method.To fix your Barba transition requiring two clicks, ensure proper Barba initialization, re-trigger Webflow interactions in afterEnter
, and prevent duplicate event bindings. Pay attention to your data-barba
attributes and ensure layout resets to avoid messy transitions.