chore: change easing method of tab crossfade
This commit is contained in:
@@ -110,6 +110,7 @@
|
|||||||
import Hearts from '@/components/ui/effects/Hearts.svelte';
|
import Hearts from '@/components/ui/effects/Hearts.svelte';
|
||||||
import { EZPPActionStatus } from '@/types';
|
import { EZPPActionStatus } from '@/types';
|
||||||
import * as presence from '@/presence';
|
import * as presence from '@/presence';
|
||||||
|
import { expoOut } from 'svelte/easing';
|
||||||
|
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{ name: 'Home', key: 'home' },
|
{ name: 'Home', key: 'home' },
|
||||||
@@ -121,6 +122,7 @@
|
|||||||
let selectedTab = $state('home');
|
let selectedTab = $state('home');
|
||||||
let [tab_send, tab_receive] = crossfade({
|
let [tab_send, tab_receive] = crossfade({
|
||||||
duration: $reduceAnimations ? 0 : 400,
|
duration: $reduceAnimations ? 0 : 400,
|
||||||
|
easing: expoOut,
|
||||||
});
|
});
|
||||||
let progress = $state(-1);
|
let progress = $state(-1);
|
||||||
let launchInfo = $state('');
|
let launchInfo = $state('');
|
||||||
|
Reference in New Issue
Block a user