diff --git a/src/routes/comps/Zooter.svelte b/src/routes/comps/Zooter.svelte
index 5d2bda9..eefe1a7 100644
--- a/src/routes/comps/Zooter.svelte
+++ b/src/routes/comps/Zooter.svelte
@@ -57,75 +57,6 @@
requestAnimationFrame(step);
}
- // Out animation:
- function flyInFromTop(
- node: HTMLElement,
- {
- y = -window.innerHeight,
- duration = 400,
- opacity = 0,
- }: { y?: number; duration?: number; opacity?: number } = {},
- ) {
- const {
- delay = 0,
- duration: d,
- easing = (t) => t,
- css,
- } = fly(node, { y, duration: d, opacity });
-
- let start: number;
- function step(now: number) {
- if (!start) start = now;
- const elapsed = now - start - delay;
- if (elapsed < 0) return requestAnimationFrame(step);
- const t = Math.min(elapsed / d, 1);
- if (css) node.style.cssText = css(easing(t), 1 - easing(t));
- if (elapsed < d) requestAnimationFrame(step);
- }
- requestAnimationFrame(step);
- }
-
- onMount(() => {
- return; // Fuck this, I'm too lazy to fix this atm
- totalScroll = document.documentElement.scrollHeight - window.innerHeight;
-
- unscrollInterval = setInterval(() => {
- // Prevents scroll to bottom on first try
- if (
- !notFirstScroll &&
- scrollY > totalScroll - unscrollScrollDiv.scrollHeight
- ) {
- smoothScrollTo(totalScroll - unscrollScrollDiv.scrollHeight * 1.1, 0);
-
- // Allow further scroll after delay
- setTimeout(() => {
- notFirstScroll = true;
- }, 1000);
- }
-
- // console.log("Time with delay: " + (Date.now() - -unscrollDelay) + " Other " + lastScrollTime);
- // console.log(isBeingTouched);
- if (
- !notFirstScroll ||
- isBeingTouched ||
- Date.now() < lastScrollTime - -unscrollDelay
- ) {
- // console.log("nah");
- return;
- }
-
- if (totalScroll - unscrollScrollDiv.scrollHeight < scrollY) {
- smoothScrollTo(totalScroll - unscrollScrollDiv.scrollHeight, 200);
- }
-
- if (totalScroll <= scrollY) {
- console.log("Hit!");
- // isLeavingAnimating = true;
- flyInFromTop(tranisitionOverlay, { duration: 800 });
- }
- }, 10);
- });
-
function onScroll() {
lastScrollTime = Date.now();
// console.log("scroll");
@@ -188,16 +119,12 @@
Benjamin Dreyer
- Oliver Schwenger
-
- Sylvester Junge
-
Snorre Ettrup Altschul
{$re?.name ?? "BOT Alex"}