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

This prevents transition jumping when visibility is repeatedly toggled
pull/6826/head
DoctorNefario 3 years ago committed by GitHub
parent fffe8c16b7
commit 55130be026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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