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.
19 lines
271 B
19 lines
271 B
8 years ago
|
{{#if visible}}
|
||
8 years ago
|
<div transition:foo>foo bidi</div>
|
||
8 years ago
|
{{/if}}
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
transitions: {
|
||
8 years ago
|
foo: function ( node, params ) {
|
||
|
global.count += 1;
|
||
8 years ago
|
return {
|
||
|
duration: 400,
|
||
|
tick: t => {
|
||
8 years ago
|
node.foo = t;
|
||
8 years ago
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|