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-deferred-opti.../main.svelte

26 lines
418 B

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