Created
October 12, 2021 17:00
-
-
Save apsolut/2837de95c8afe2f72152b59f036e35fe to your computer and use it in GitHub Desktop.
barbajs after before
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((data) => { | |
| const cols = document.querySelector('.site-branding'); | |
| gsap.to(cols, { | |
| autoAlpha: 0, | |
| }); | |
| }); | |
| barba.hooks.after((data) => { | |
| const cols = document.querySelector('.site-branding'); | |
| gsap.to(cols, { | |
| autoAlpha: 1, | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment