Created
September 26, 2019 09:17
-
-
Save marekalgoud/37e22199e30fea7d698dd02f73427db7 to your computer and use it in GitHub Desktop.
barba 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
barba.hooks.before(() => { | |
barba.wrapper.classList.add('is-animating') | |
}) | |
barba.hooks.after(() => { | |
barba.wrapper.classList.remove('is-animating') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment