Sweet transition
This commit is contained in:
parent
75d67465bf
commit
706ca3e2ae
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue