0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
svelte/site/content/examples/transitions-in-out/App.html
2018-12-23 19:05:30 -05:00

11 lines
219 B
HTML

<script>
import { fade, fly } from 'svelte/transition';
export let visible;
</script>
<input type=checkbox bind:checked={visible}> visible
{#if visible}
<p in:fly="{{y: 50}}" out:fade>flies up, fades out</p>
{/if}