Skip to content

Instantly share code, notes, and snippets.

@karanmhatre1
Last active May 24, 2023 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save karanmhatre1/554423a0cc02449a80bf2cc3dd13bd9e to your computer and use it in GitHub Desktop.
Save karanmhatre1/554423a0cc02449a80bf2cc3dd13bd9e 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