mirror of https://github.com/sveltejs/svelte
parent
7401004a66
commit
7b2246126e
@ -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