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

25 lines
354 B

<script>
export let visible;
function foo(node, _params, options) {
node.initial = options.direction;
return (opts) => {
node.later = opts.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}