2022-08-25 13:02:36 -07:00
|
|
|
<script lang="ts">
|
2023-07-01 00:50:47 -04:00
|
|
|
import { onMount } from 'svelte';
|
|
|
|
import { cubicOut } from 'svelte/easing';
|
|
|
|
import { tweened } from 'svelte/motion';
|
2022-08-25 13:02:36 -07:00
|
|
|
|
2023-07-01 00:50:47 -04:00
|
|
|
const progress = tweened(0, {
|
|
|
|
duration: 1000,
|
|
|
|
easing: cubicOut,
|
|
|
|
});
|
2022-08-25 13:02:36 -07:00
|
|
|
|
2024-02-27 08:37:37 -08:00
|
|
|
onMount(async () => {
|
|
|
|
await progress.set(90);
|
2023-07-01 00:50:47 -04:00
|
|
|
});
|
2022-08-25 13:02:36 -07:00
|
|
|
</script>
|
|
|
|
|
2023-07-18 13:19:39 -05:00
|
|
|
<div class="absolute left-0 top-0 z-[999999999] h-[3px] w-screen bg-white">
|
|
|
|
<span class="absolute h-[3px] bg-immich-primary" style:width={`${$progress}%`} />
|
2022-08-25 13:02:36 -07:00
|
|
|
</div>
|