Import missing TransitionAnimationPair (#7726)
* Import missing TransitionAnimationPair * Don't use satisfies
This commit is contained in:
parent
5cc54bbd5a
commit
464eb4f825
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
import type { TransitionDirectionalAnimations } from '../@types/astro';
|
import type { TransitionDirectionalAnimations, TransitionAnimationPair } from '../@types/astro';
|
||||||
|
|
||||||
export function slide({
|
export function slide({
|
||||||
duration,
|
duration,
|
||||||
|
@ -49,7 +49,7 @@ export function fade({
|
||||||
}: {
|
}: {
|
||||||
duration?: string | number;
|
duration?: string | number;
|
||||||
} = {}): TransitionDirectionalAnimations {
|
} = {}): TransitionDirectionalAnimations {
|
||||||
const anim = {
|
const anim: TransitionAnimationPair = {
|
||||||
old: {
|
old: {
|
||||||
name: 'astroFadeInOut',
|
name: 'astroFadeInOut',
|
||||||
duration: duration ?? '0.2s',
|
duration: duration ?? '0.2s',
|
||||||
|
@ -62,7 +62,7 @@ export function fade({
|
||||||
easing: 'linear',
|
easing: 'linear',
|
||||||
fillMode: 'backwards',
|
fillMode: 'backwards',
|
||||||
},
|
},
|
||||||
} satisfies TransitionAnimationPair;
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
forwards: anim,
|
forwards: anim,
|
||||||
|
|
Loading…
Reference in a new issue