Skip to content

Commit

Permalink
fix slide example
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored and Conduitry committed May 29, 2019
1 parent 767ce22 commit 42235cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/content/docs/03-run-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,13 +618,13 @@ Slides an element in and out.

```html
<script>
import { fly } from 'svelte/transition';
import { slide } from 'svelte/transition';
import { quintOut } from 'svelte/easing';
</script>

{#if condition}
<div transition:fly="{{delay: 250, duration: 300, easing: quintOut }}">
flies in and out
<div transition:slide="{{delay: 250, duration: 300, easing: quintOut }}">
slides in and out
</div>
{/if}
```
Expand Down

0 comments on commit 42235cf

Please sign in to comment.