mirror of https://github.com/sveltejs/svelte
27 lines
376 B
27 lines
376 B
{#if visible}
|
|
<div in:foo out:bar>foo then bar</div>
|
|
{/if}
|
|
|
|
<script>
|
|
export default {
|
|
transitions: {
|
|
foo: function ( node, params ) {
|
|
return {
|
|
duration: 400,
|
|
tick: t => {
|
|
node.foo = t;
|
|
}
|
|
};
|
|
},
|
|
|
|
bar: function ( node, params ) {
|
|
return {
|
|
duration: 400,
|
|
tick: t => {
|
|
node.bar = t;
|
|
}
|
|
};
|
|
}
|
|
}
|
|
};
|
|
</script> |