Remove unused code and update packages

This commit is contained in:
2022-09-23 10:07:01 +02:00
parent 2b30f3b07a
commit b764b4d1d1
6 changed files with 144 additions and 170 deletions

View File

@@ -4,15 +4,4 @@ import type { Easing } from 'motion'
/**
* Ease: Quart Out Array
*/
export const quartOut: Easing = [.165, .84, .44, 1]
/**
* Ease: Quart In Out function
*/
export const quartInOutFunc = (t: number, b: number, c: number, d: number) => {
t /= d/2
if (t < 1) return c/2 * t * t * t * t + b
t -= 2
return -c / 2 * (t * t * t * t - 2) + b
}
export const quartOut: Easing = [.165, .84, .44, 1]

1
src/app.d.ts vendored
View File

@@ -4,6 +4,7 @@
declare namespace App {
// interface Locals {}
// interface PageData {}
// interface Error {}
// interface Platform {}
}

View File

@@ -20,6 +20,7 @@
export let data: PageData
let innerHeight: number
$: innerHeight && document.body.style.setProperty('--vh', `${innerHeight}px`)
// Fonts to preload
const fonts = [
@@ -59,8 +60,6 @@
// Avoid FOUC
document.body.style.opacity = '1'
})
$: innerHeight && document.body.style.setProperty('--vh', `${innerHeight}px`)
</script>
<svelte:window bind:innerHeight />

View File

@@ -1,6 +1,3 @@
import { quartInOutFunc } from '$animations/easings'
/**
* Throttle function
*/