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

pull/6487/head
Jatin Hemnani 4 years ago committed by GitHub
parent 287cccc450
commit c4f4a3dc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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