Skip to content

Commit

Permalink
add fade animation
Browse files Browse the repository at this point in the history
  • Loading branch information
samyakjain11 committed Sep 2, 2023
1 parent eeb31fb commit 749c373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Icon from '@iconify/svelte';
import { onMount } from 'svelte';
import { slide } from 'svelte/transition';
import { fade, slide } from 'svelte/transition';
import Sponsors from '../components/home/sponsors.svelte';
import ShootingStar from '../components/shooting-star.svelte';
import { API_URL } from '../constants';
Expand Down Expand Up @@ -72,7 +72,7 @@
{#if qrImg}
<button on:click={() => { showQR = !showQR }} class="w-full aspect-square">
{#if showQR}
<img src={qrImg} class="w-full aspect-square" alt="QR Pass" />
<img src={qrImg} class="w-full aspect-square" alt="QR Pass" in:fade/>
{:else}
<p class="w-full aspect-square bg-white font-semibold text-rp-blue flex items-center justify-center">{user.email}</p>
{/if}
Expand Down

0 comments on commit 749c373

Please sign in to comment.