summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/Transitions.ts
blob: 59ebaf2c1361db93a60026760c3a2391decf7887 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                           
import { quartInOut } from 'svelte/easing';
import type { FadeParams, SlideParams } from 'svelte/transition';

export const fadeFast: FadeParams = { duration: 60 };
export const fadeDefault: FadeParams = { duration: 100 };

export const slideYDefault: SlideParams = { axis: 'y', duration: 300, easing: quartInOut };

export const slideXDefault: SlideParams = { axis: 'x', duration: 300, easing: quartInOut };
export const slideXFast: SlideParams = { axis: 'x', duration: 200 };