КС
Size: a a a
КС
МТ
<script>
function animate() { code }
let nodes = [];
$: nodes && animate(); // или animate(nodes);
</script>
{#each nodes as arr, i}
<div bind:this={nodes[i]}></div>
{/each}
<script>
export let array;
function animate() { code }
let nodes = [];
$: nodes && animate(); // или animate(nodes);
</script>
{#each array as arr, i}
<div bind:this={nodes[i]}></div>
{/each}
МТ
nodes
и длину array
$: if(
nodes
.length ==
array
.length) animate()
МТ
КС
nodes
и длину array
$: if(
nodes
.length ==
array
.length) animate()
PM
КС
PM
<script>
function animate() { code }
let nodes = [];
$: nodes && animate(); // или animate(nodes);
</script>
{#each nodes as arr, i}
<div bind:this={nodes[i]}></div>
{/each}
PM
PM
nodes
и длину array
$: if(
nodes
.length ==
array
.length) animate()
PM
PM
PM
КС
КС
AP
К
PM
PM
PM