Skip to content

Commit

Permalink
[docs] added transition on toggling folder in tutorial (#6453)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinhemnani01 committed Jul 2, 2021
1 parent 287cccc commit c4f4a3d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import File from './File.svelte';
import {slide} from 'svelte/transition'
export let expanded = false;
export let name;
export let files;
Expand All @@ -13,7 +14,7 @@
<span class:expanded on:click={toggle}>{name}</span>

{#if expanded}
<ul>
<ul transition:slide={{duration:300}}>
{#each files as file}
<li>
{#if file.type === 'folder'}
Expand Down Expand Up @@ -49,4 +50,4 @@
li {
padding: 0.2em 0;
}
</style>
</style>

0 comments on commit c4f4a3d

Please sign in to comment.