[docs] added transition on toggling folder in tutorial (#6453)

pull/7738/head
Jatin Hemnani 5 years ago committed by GitHub
parent db1f76321d
commit 6051a25fe0

@ -1,5 +1,6 @@
<script> <script>
import File from './File.svelte'; import File from './File.svelte';
import {slide} from 'svelte/transition'
export let expanded = false; export let expanded = false;
export let name; export let name;
@ -13,7 +14,7 @@
<span class:expanded on:click={toggle}>{name}</span> <span class:expanded on:click={toggle}>{name}</span>
{#if expanded} {#if expanded}
<ul> <ul transition:slide={{duration:300}}>
{#each files as file} {#each files as file}
<li> <li>
{#if file.type === 'folder'} {#if file.type === 'folder'}

Loading…
Cancel
Save