1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-23 04:38:12 +02:00
Files
immich/web/src/lib/components/shared-components/navigation-loading-bar.svelte
2022-08-25 13:02:36 -07:00

19 lines
433 B
Svelte

<script lang="ts">
import { onMount } from 'svelte';
import { cubicOut } from 'svelte/easing';
import { tweened } from 'svelte/motion';
const progress = tweened(0, {
duration: 1000,
easing: cubicOut
});
onMount(() => {
progress.set(90);
});
</script>
<div class="absolute top-0 left-0 w-screen h-[3px] bg-white z-[999999999]">
<span class="absolute bg-immich-primary h-[3px]" style:width={`${$progress}%`} />
</div>