[wip] Switch from Anime to Motion One for page animations

This commit is contained in:
2022-08-14 00:45:44 +02:00
parent a044cf3939
commit f771a73b67
13 changed files with 295 additions and 222 deletions

11
src/app.d.ts vendored
View File

@@ -1,5 +1,6 @@
/// <reference types="@sveltejs/kit" />
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare namespace App {
@@ -25,7 +26,7 @@ declare namespace svelte.JSX {
/**
* Custom Types
*/
declare type PhotoGridAbout = {
declare interface PhotoGridAbout {
id: string
title: string
slug: string
@@ -62,7 +63,7 @@ declare interface smoothScrollOptions {
/**
* Swipe options
*/
interface SwipeOptions {
declare interface SwipeOptions {
travelX?: number
travelY?: number
timeframe?: number
@@ -72,17 +73,17 @@ interface SwipeOptions {
/**
* Reveal Animation
*/
declare interface RevealOptions {
declare type RevealOptions = {
enable?: boolean
options?: TransitionOptions
children?: string | HTMLElement
animation: any
}
// Options interface
declare interface TransitionOptions {
declare type TransitionOptions = {
threshold?: number
duration?: number
stagger?: number
delay?: number
easing?: any
easing?: string | Easing
}