@mill3-packages/barba-scripts
v0.2.2
Published
Helper that manage your scripts dependencies during Barba.js transitions
Readme
MILL3-packages : @barba/scripts
Add new scripts, both external and inlined, during Barba.js transition. A must use if you use Gravity Form in your Wordpress project.
Install
Using npm:
npm install --save @mill3-packages/barba-scriptsor using yarn:
yarn add @mill3-packages/barba-scriptsHow to use
First, import script in your file where you also init Barba.
import scripts from "@mill3-packages/barba-scripts";Then just before your main Barba init call, use() this script.
barba.use(scripts);
barba.init();