0.0.7 • Published 1 year ago

@traction.js/sveltekit v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Traction.js

Simple customizable loading progress bar for nextjs and sveltekit.

SvelteKit

Install

NPM

npm install @traction.js/sveltekit

Yarn

yarn add @traction.js/sveltekit

PNPM

pnpm add @traction.js/sveltekit

Example

+layout.svelte

<script>
  import Traction from "@traction.js/sveltekit";
</script>

<Traction />
<slot />

Traction Props

Default Props

<Traction color="#FF0000" incrementInterval={100} incrementAmount={10} transitionDuration={500} transitionTimingFunction="ease" />

Options

color: The hex color of the progress bar. "#FF0000"

incrementInterval: The interval in milliseconds between each increment. 100

incrementAmount: The amount of progress to increment between each increment interval. 10

transitionDuration: The duration in milliseconds of the transition. 500

transitionTimingFunction: The type of transition timing function. "ease" | "linear" | "ease-in" | "ease-out" | "ease-in-out"

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago