Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
svelte-loading-spinners
Advanced tools
Readme
collection of loading spinners with Svelte.js
npm i --save-dev svelte-loading-spinners
or
yarn add -D svelte-loading-spinners
Import navigating
from $app/stores
.
When navigating starts, it's value is a Navigation object with from, to, type and (if type === 'popstate') delta properties. When navigating finishes, its value reverts to null.
Read More: Sveltekit Docs and Stackoverflow
By using an {#if $navigating}
this allows us to show the loading animation when the page is loading and stop once it's fully rendered.
<script>
import { Jumper } from 'svelte-loading-spinners';
import { navigating } from '$app/stores'
</script>
{#if $navigating}
<Jumper size="60" color="#FF3E00" unit="px" duration="1s" />
{/if}
Props: size
, color
, unit
, duration
and pause
.
The default props; unit
is px
, color
is #FF3E00
and size
60px
.
Notes:
Circle2
instead of the color
and duration
props has colorOuter
, colorCenter
, colorInner
, durationOuter
, durationCenter
, durationInner
props.
Circle3
has ballTopLeft
, ballTopRight
, ballBottomLeft
and ballBottomRight
as props aswell.
Loaders |
---|
BarLoader |
Chasing |
Circle |
Circle2 |
Circle3 |
DoubleBounce |
Firework |
Jellyfish |
Jumper |
Pulse |
Rainbow |
RingLoader |
ScaleOut |
Shadow |
SpinLine |
Stretch |
SyncLoader |
Wave |
Square |
Moon |
List of all spinner: Demo
FAQs
Loading spinners using the svelte framework.
The npm package svelte-loading-spinners receives a total of 12,345 weekly downloads. As such, svelte-loading-spinners popularity was classified as popular.
We found that svelte-loading-spinners demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.