Want to try Barba? Let’s install it!
Use with a bundler
Then import it like any other module inside your build:
import barba from '@barba/core';
Using a bundler has many advantages like output compression, code splitting, tree shaking, etc., so we encourage you to use this kind of tool with Barba.
Use with a CDN
To rapidly include the minified production file in your webpage, load the latest build from your favorite CDN using a generic script markup:
<!-- unpkg -->
Then init Barba:
By default, if no one is specified, the CDN will automatically target the @latest version of Barba and load the UMD build from
Barba is build upon
microbundle and is provided with an ESM and Modern version include in the package