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.
17 lines
240 B
17 lines
240 B
6 years ago
|
{#each things as thing (thing)}
|
||
|
<div animate:foo animate:bar></div>
|
||
|
{/each}
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
animations: {
|
||
|
foo(node, animation, params) {
|
||
|
// ...
|
||
|
},
|
||
|
|
||
|
bar(node, animation, params) {
|
||
|
// ...
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|