mirror of https://github.com/sveltejs/svelte
parent
b8beb002a1
commit
f9d606a5c9
@ -0,0 +1,17 @@
|
||||
<div transition:foo><slot></slot></div>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
transitions: {
|
||||
foo: function ( node, params ) {
|
||||
return {
|
||||
delay: 50,
|
||||
duration: 100,
|
||||
tick: t => {
|
||||
node.foo = t;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue