Remove unused code and update packages
This commit is contained in:
@@ -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
1
src/app.d.ts
vendored
@@ -4,6 +4,7 @@
|
||||
declare namespace App {
|
||||
// interface Locals {}
|
||||
// interface PageData {}
|
||||
// interface Error {}
|
||||
// interface Platform {}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import { quartInOutFunc } from '$animations/easings'
|
||||
|
||||
|
||||
/**
|
||||
* Throttle function
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user