astro-loading-indicator
astro-loading-indicator copied to clipboard
Display a progress bar between page navigations when using View Transitions
What about computing the animation duration dinamically based on the time to load the previous page?
```html .astro-loading-indicator { --progress: 0; --animation-duration: 300ms; --opacity-animation-duration: 150ms; pointer-events: none; background-color: hsl(192, 41%, 84%); position: fixed; z-index: 1031; top: 0; left: 0; width: 100%; height: 3px; transition: transform var(--animation-duration)...
https://github.com/florian-lefebvre/astro-loading-indicator/blob/main/package%2Fsrc%2FLoadingIndicator.astro#L42 200 should be replaced by defaultThreshold