mirror of https://github.com/sveltejs/svelte
18 lines
247 B
18 lines
247 B
8 years ago
|
<script>
|
||
6 years ago
|
export let visible;
|
||
|
export let name;
|
||
|
|
||
|
function foo(node, params) {
|
||
|
global.count += 1;
|
||
|
return {
|
||
|
duration: 100,
|
||
|
tick: t => {
|
||
|
node.foo = t;
|
||
8 years ago
|
}
|
||
6 years ago
|
};
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
{#if visible}
|
||
|
<div transition:foo>hello {name}!</div>
|
||
|
{/if}
|