[wip] Switch from Anime to Motion One for page animations
This commit is contained in:
11
src/app.d.ts
vendored
11
src/app.d.ts
vendored
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user