blob: a81c02ed4dfe2a987ef75245943fac5e23d54789 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import { onMount } from 'svelte'
import type { AnimationFn } from './types'
export function animate(fn: AnimationFn) {
onMount(fn)
}
export function all(...animations: AnimationFn[]) {
return Promise.all(animations)
}
|