Sweet transition

This commit is contained in:
Joe 2020-05-28 09:37:54 +01:00
parent fc73bb2341
commit 8e019a3f6d
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
<script>
import { fly } from 'svelte/transition';
export let item
</script>
<div class="item-item" on:click>
<div class="item-item" transition:fly="{{ y: 100, duration: 1000 }}" on:click>
<div class="item-icon">
<i class={item.icon} />
</div>