Skip to content

Commit

Permalink
transitions!
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliapixel committed Apr 20, 2024
1 parent aae03f3 commit 851210a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/AsyncMarkdownReq.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { marked } from "marked";
import { slide } from "svelte/transition";
export let url: string;
Expand All @@ -12,8 +13,10 @@

<div>
{#await request(url)}
Loading...
<!-- yea -->
{:then resp}
{@html marked.parse(resp)}
<div transition:slide={{duration: 250}}>
{@html marked.parse(resp)}
</div>
{/await}
</div>

0 comments on commit 851210a

Please # to comment.