Skip to content

Instantly share code, notes, and snippets.

@mfrancois3k
Forked from karanmhatre1/main.js
Last active May 24, 2023 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfrancois3k/f0c2b5078d555a31689f04700f3da907 to your computer and use it in GitHub Desktop.
Save mfrancois3k/f0c2b5078d555a31689f04700f3da907 to your computer and use it in GitHub Desktop.
Barba JS Hooks
transitions: [{
async leave(data) {
const done = this.async();
loadingAnimation();
await delay(1000);
done();
},
enter(data) { contentAnimation(); },
once(data) { contentAnimation(); }
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment