1.1.8 • Published 3 years ago

svelte-spins v1.1.8

Weekly downloads
15
License
MIT
Repository
-
Last release
3 years ago

svelte-spins

loaders.css as Svelte components.

A zero dependency spinner/loader library using loaders.css as Svelte components.

Demo

Install

svelte-spins can be installed using yarn or npm.

yarn add svelte-spins
npm i svelte-spins

Usage

<script>
  import { BallPulseSync } from "svelte-spins";
  let color = "red";
  let classes = "button-loader";
  let style="background: green; padding: 3rem;";

</script>

<BallPulseSync {color} {classes} {style} />

API

Props

All props are optional.

NameValueDefault ValueFunction
classesstringnullClasses to be applied
stylestringnullInline styles to be applied
colorstringblackThe foreground color of the loader

Loaders

  • BallBeat
  • BallClipRotate
  • BallClipRotateMultiple
  • BallClipRotatePulse
  • BallGridBeat
  • BallGridPulse
  • BallPulse
  • BallPulseRise
  • BallPulseSync
  • BallRotate
  • BallScale
  • BallScaleMultiple
  • BallScaleRipple
  • BallScaleRippleMultiple
  • BallSpinFadeLoader
  • BallTrianglePath
  • BallZigZag
  • BallZigZagDeflect
  • CubeTransition
  • LineScale
  • LineScaleParty
  • LineScalePulseOut
  • LineScalePulseOutRapid
  • LineSpinFadeLoader
  • Pacman
  • SemiCircleSpin
  • SquareSpin
  • TriangleSkewSpin

License

MIT

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago