Sweet transition
This commit is contained in:
parent
fc73bb2341
commit
8e019a3f6d
|
@ -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