Sweet transition
This commit is contained in:
parent
fc73bb2341
commit
8e019a3f6d
|
@ -1,8 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
|
import { fly } from 'svelte/transition';
|
||||||
export let item
|
export let item
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="item-item" on:click>
|
<div class="item-item" transition:fly="{{ y: 100, duration: 1000 }}" on:click>
|
||||||
<div class="item-icon">
|
<div class="item-icon">
|
||||||
<i class={item.icon} />
|
<i class={item.icon} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue