Sweet transition

This commit is contained in:
Joe 2020-05-28 09:37:54 +01:00
parent 75d67465bf
commit 706ca3e2ae
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>