@mill3-packages/barba-scripts
v0.2.2
Published
Helper that manage your scripts dependencies during Barba.js transitions
Downloads
19
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-scripts
or using yarn:
yarn add @mill3-packages/barba-scripts
How 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();