mirror of https://github.com/sveltejs/svelte
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.
25 lines
314 B
25 lines
314 B
8 years ago
|
<script>
|
||
6 years ago
|
export let visible;
|
||
|
|
||
|
function foo(node, params) {
|
||
|
return {
|
||
|
duration: 400,
|
||
|
tick: t => {
|
||
|
node.foo = t;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
8 years ago
|
|
||
6 years ago
|
function bar(node, params) {
|
||
|
return {
|
||
|
duration: 400,
|
||
|
tick: t => {
|
||
|
node.bar = t;
|
||
8 years ago
|
}
|
||
6 years ago
|
};
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
{#if visible}
|
||
|
<div in:foo out:bar>foo then bar</div>
|
||
|
{/if}
|