Skip to content

Instantly share code, notes, and snippets.

@marekalgoud
Created September 26, 2019 09:17
Show Gist options
  • Save marekalgoud/37e22199e30fea7d698dd02f73427db7 to your computer and use it in GitHub Desktop.
Save marekalgoud/37e22199e30fea7d698dd02f73427db7 to your computer and use it in GitHub Desktop.
barba hooks
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