This file contains 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
const observer = new IntersectionObserver((entries) => { | |
entries.forEach((entry) => { | |
if (entry.isIntersecting) { | |
entry.target.classList.add('show'); | |
} | |
}); | |
}); | |
const hiddenElements = document.querySelectorAll('.hide-animate'); | |
hiddenElements.forEach((element) => { | |
observer.observe(element); |
This file contains 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
function debounce (callback: Function, duration: number, timer: number) { | |
if (timer) { | |
clearTimeout(timer); | |
} | |
timer = setTimeout(callback, duration); | |
}; |
This file contains 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
function throttle(callback: Function, time: number, throttlePause: boolean) { | |
if (throttlePause) { | |
return; | |
} | |
throttlePause = true; | |
setTimeout(() => { | |
callback(); | |
throttlePause = false; | |
}, time); |
This file contains 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
// ---- | |
// Sass (v3.3.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@import url(http://fonts.googleapis.com/css?family=Candal); | |
@import url('https://raw.githubusercontent.com/Drew-Killeen/GigabyteStudios/master/misc.css'); | |
@import url('https://raw.githubusercontent.com/Drew-Killeen/GigabyteStudios/master/mobile.css'); | |
/* |