Last active
May 24, 2023 02:17
-
-
Save karanmhatre1/554423a0cc02449a80bf2cc3dd13bd9e to your computer and use it in GitHub Desktop.
Barba JS Hooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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