mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Added page navigation progress indicator
This commit is contained in:
parent
e344503834
commit
658b64df74
4 changed files with 40 additions and 9 deletions
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue