11 lines
237 B

<script>
import { fly } from 'svelte/transition';
export let visible;
</script>
<input type=checkbox bind:checked={visible}> visible
{#if visible}
<p transition:fly="{{y: 200, duration: 1000}}">flies 200 pixels up, slowly</p>
{/if}