window.onload = function() {
if(performance.navigation.type == 2){ location.reload(true); } var $all_msg = $('.big-header'); var author = $(".author").text() var result = [] var texts = [] var $wordList = (author + "'s Projects").split(""); $.each($wordList, function(idx, elem) { if (idx < $wordList.length - 11) { var newEL = $("<span/>").text(elem).css({ opacity: 0, color: $(".color").text() }); } else { var newEL = $("<span/>").text(elem).css({ opacity: 0, }); } //append it to the welcome message newEL.appendTo($all_msg); //set the delay on the animation for this element newEL.delay(idx * 33); //animate the opacity back to full 1 newEL.animate({ opacity: 1 }, 500); }); $(".sdc").fadeIn(200); // gsap.registerPlugin(ScrollTrigger) var cards = gsap.utils.toArray(".card") cards.forEach((item) => { gsap.to(item, { scrollTrigger: { trigger: item, start: "center bottom", }, opacity: 1, transform: "translateY(0px)", }) });
}
$(window).on('beforeunload', function() {
$('body').hide(); $(window).scrollTop(0);
});