-
-
Save cliftonc0613/d45d73af774df987a7feee1bb72193cf to your computer and use it in GitHub Desktop.
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
<script> | |
;( function() { | |
// wait until gsap & ScrollTrigger available | |
let chck_if_gsap_loaded = setInterval( function() { | |
if( window.gsap && window.ScrollTrigger ) { | |
// register scrolTrigger | |
gsap.registerPlugin( ScrollTrigger ); | |
// ... do your thing | |
my_stuff(); | |
// clear interval | |
clearInterval( chck_if_gsap_loaded ); | |
} | |
}, 500 ); | |
function my_stuff() { | |
} | |
} )(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment