[wip] Switch from Anime to Motion One for page animations

This commit is contained in:
2022-08-14 00:45:44 +02:00
parent a044cf3939
commit f771a73b67
13 changed files with 295 additions and 222 deletions

View File

@@ -6,7 +6,7 @@
import { getContext } from 'svelte'
import { flip } from 'svelte/animate'
import { quartOut } from 'svelte/easing'
import { reveal, fly } from '$animations/index'
import reveal from '$animations/reveal'
import { send, receive } from '$animations/crossfade'
import { throttle } from '$utils/functions'
import { sendEvent } from '$utils/analytics'
@@ -67,14 +67,13 @@
<ul class="browse__locations"
use:reveal={{
animation: fly,
children: '.location',
animation: { y: ['20%', 0], opacity: [0, 1] },
options: {
children: 'li',
stagger: 100,
duration: 1200,
from: '20%',
stagger: 0.105,
duration: 1,
threshold: 0.3,
},
threshold: 0.3,
}}
>
{#each filteredLocations as location (location)}