You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/transition-inert/main.svelte

17 lines
259 B

<script>
export let visible = true;
function slide(_, params) {
return params;
}
</script>
{#if visible}
<button class="a" transition:slide={{ duration: 100 }}>
foo
</button>
<button class="b" out:slide={{ duration: 100 }}>
bar
</button>
{/if}