[docs] use 'transition' directive for custom JS transitions (#6796)

This prevents transition jumping when visibility is repeatedly toggled
pull/7738/head
DoctorNefario 5 years ago committed by GitHub
parent 74af20891e
commit 6c69b7054e

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

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

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

Loading…
Cancel
Save