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
|
|
|
|
2023-07-01 00:50:47 -04:00
|
|
|
onMount(() => {
|
|
|
|
|
progress.set(90);
|
|
|
|
|
});
|
2022-08-25 13:02:36 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="absolute top-0 left-0 w-screen h-[3px] bg-white z-[999999999]">
|
2023-07-01 00:50:47 -04:00
|
|
|
<span class="absolute bg-immich-primary h-[3px]" style:width={`${$progress}%`} />
|
2022-08-25 13:02:36 -07:00
|
|
|
</div>
|