stories
Athlete Spotlight
Social Media
require(['jquery', 'knockout', 'https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.js',
'perfect-scrollbar'], function($, ko, AOS){
//animate on scroll
$(function(){
var checkBindingsInterval = setInterval(function(){
if(!!ko.dataFor($('body')[0])) {
clearInterval(checkBindingsInterval);
setTimeout(function(){
window.AOS = AOS;
window.AOS.init();
var docHeight = $(document).height();
setInterval(function() {
var docHeightTemp = $(document).height();
if (docHeight !== docHeightTemp) {
docHeight = docHeightTemp;
window.AOS.refresh();
};
}, 250);
}, 1000);
}
}, 100);
});
$(function(){
var socialInterval = setInterval(function(){
if($('.c-twitter__item').length) {
clearInterval(socialInterval);
$('.c-twitter__inner').perfectScrollbar({
suppressScrollX: true
});
}
},250)
});
});