@wabosh/navigation-loader
v0.2.7
Published
A small loading bar, listening to navigation state
Downloads
123
Maintainers
Readme
Navigation Loader
A simple-to-use navigation loading indicator.
It uses navigation state to display loading (with unknown duration) with a customizable fixed loading bar at the top of the page.
Currently tested with goto(...)
as well as <a href="...">...</a>
navigation.
Install
npm install --save @wabosh/navigation-loader
Usage
Simply put it at the start of your +layout.svelte
.
<!-- +layout.svelte -->
<script>
import {NavigationLoader} from "@wabosh/navigation-loader";
</script>
<NavigationLoader animationDuration={250} color="#7fffd4">
<slot />