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-js-option-direction/main.svelte

21 lines
302 B

<script>
export let visible = false;
function foo(node, _params, options) {
node.direction = options.direction;
return {
duration: 10
};
}
</script>
{#if visible}
<div id="both" transition:foo></div>
<div id="in" in:foo></div>
{/if}
{#if !visible}
<div id="out" out:foo></div>
{/if}