[docs] use 'transition' directive for custom JS transitions

This prevents transition jumping when visibility is repeatedly toggled
pull/6796/head
DoctorNefario 5 years ago
parent 83bb3e2757
commit 7b1ac1d3d5

@ -30,7 +30,7 @@
</label>
{#if visible}
<p in:typewriter out:typewriter>
<p transition:typewriter>
The quick brown fox jumps over the lazy dog
</p>
{/if}

@ -16,7 +16,7 @@
</label>
{#if visible}
<p in:typewriter>
<p transition:typewriter>
The quick brown fox jumps over the lazy dog
</p>
{/if}

@ -30,7 +30,7 @@
</label>
{#if visible}
<p in:typewriter out:typewriter>
<p transition:typewriter>
The quick brown fox jumps over the lazy dog
</p>
{/if}

Loading…
Cancel
Save