МТ
Size: a a a
МТ
МТ
КС
МТ
МТ
КС
МТ
КС
КС
МТ
МТ
КС
КС
МТ
<script>
function animate(node, isVisible) {
gsap.to(node, {
// initAnimation
})
return {
update(isVisible) {
gsap.to(node, {
//destroyAnimation,
onComplete: () => visible = false
})
}
}
}
</script>
{#if visible}
<div use:animate={isVisible}>content</div>
{/if}
КС
КС
КС
КС
КС
МТ