All Projects → huozhi → respinner

huozhi / respinner

Licence: other
Pretty and customizable svg spinners for React.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to respinner

Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+769.66%)
Mutual labels:  spinner, loading, loading-animations, loading-spinner
SSSwiftUISpinnerButton
SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Stars: ✭ 37 (-58.43%)
Mutual labels:  loading, loading-animations, loading-spinner
Spinners
A Sass mixin to generate fully customizable, pure CSS3 loading/busy indicators
Stars: ✭ 33 (-62.92%)
Mutual labels:  spinner, loading, loading-animations
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+185.39%)
Mutual labels:  spinner, loading, loading-spinner
Iprogresshud
An elegant, lightweight and responsive progress HUD for iOS app with very simple usage. Available 32 indicators by NVActivityIndicatorView.
Stars: ✭ 66 (-25.84%)
Mutual labels:  loading, loading-animations, loading-spinner
busy-load
A flexible loading-mask jQuery-plugin
Stars: ✭ 76 (-14.61%)
Mutual labels:  spinner, loading, loading-spinner
loading
Laravel package to add loading indicator to pages while page is loading.
Stars: ✭ 38 (-57.3%)
Mutual labels:  spinner, loading-animations, loading-spinner
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+24.72%)
Mutual labels:  spinner, loading, loading-spinner
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (-85.39%)
Mutual labels:  spinner, loading, loading-spinner
react-native-spinner-button
React Native button component with multiple animated spinners
Stars: ✭ 105 (+17.98%)
Mutual labels:  spinner, loading-animations, loading-spinner
React Epic Spinners
Reusable react components for epic-spinners
Stars: ✭ 280 (+214.61%)
Mutual labels:  spinner, loading-animations, loading-spinner
Epic Spinners
Easy to use css spinners collection with Vue.js integration
Stars: ✭ 3,548 (+3886.52%)
Mutual labels:  spinner, loading-animations, loading-spinner
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (+94.38%)
Mutual labels:  spinner, loading
Angular Loading Feedback
Angular directive to indicate loads in app
Stars: ✭ 8 (-91.01%)
Mutual labels:  spinner, loading
Vue Element Loading
⏳ Loading inside a container or full screen for Vue.js
Stars: ✭ 234 (+162.92%)
Mutual labels:  spinner, loading
React Circle
Renders a svg circle + progress, it just works 💘
Stars: ✭ 925 (+939.33%)
Mutual labels:  spinner, loading
Respin
React SVG loading spinner based on jxnblk.com/loading
Stars: ✭ 21 (-76.4%)
Mutual labels:  spinner, loading-spinner
Text Spinners
Pure text, CSS only, font independent, inline loading indicators
Stars: ✭ 2,728 (+2965.17%)
Mutual labels:  spinner, loading-animations
Vue Loading Overlay
Vue.js component for full screen loading indicator 🌀
Stars: ✭ 784 (+780.9%)
Mutual labels:  spinner, loading
Css Spinner
small, elegant pure css spinner for ajax or loading animation
Stars: ✭ 1,013 (+1038.2%)
Mutual labels:  spinner, loading

Respinner

npm-download npm-version license

react components for spinners or loaders. Each loader was combined css animation and render dom as svg. easily controlled by react porps.

You could change the count of spinner's children by props count, also the color of themselves. All of them built with SVG, so you can easily scale them with width and height.

Examples

demo

See more details in demo directory or visit website

Usage

npm install --save respinner

Just import it when use with react. Issues go to issues.

Basic

import React, {Component} from 'react'
// easily import from entry
import {
  BeatLoading, BounceLoading, CircularLoading,
  ClockLoading, RotateLoading, SpinLoading,
  WaveLoading, DashLoading, CopperLoading
} from 'respinner'

class LoadingComponents extends Component {  
  render() {
    <div className="spinners">
      <SpinLoading fill="#777" borderRadius={4} count={12} /> // use with customized props
      <CircularLoading /> // or just use with default props
    </div>
  }
}

Use with SVG use

// pre-define a spinner
<SpinLoading borderRadius={2} count={10} id="spin" />

// reuse them
<svg width="40"><use href="#spin" fill="#fff" /></svg>
<svg width="40"><use href="#spin" fill="#fff" /></svg>

API

Common Props

  • className
  • width
  • height
  • stroke/fill (stroke for circle ones, fill for rectangle ones)

1. BeatLoading

  • gap: default 6
  • size: default 8
  • count: default 6
  • duration: default 0.8

2. CircularLoading

  • size: default 40
  • strokeWidth: default 4
  • linecap: default 'round'

3. BounceLoading

  • gap: default 6
  • count: default 4
  • barWidth: default 4
  • barHeight: default 16
  • duration: default 0.8

4. RotateLoading

  • size: default 40
  • opacity: default 0.2
  • strokeWidth: default 4

5. SpinLoading

  • size: default 40
  • count: default 8
  • barWidth: default 4
  • duration: default 1
  • barHeight: default 10
  • borderRadius: default 1

6. WaveLoading

  • size: default 40
  • count: default 3
  • duration: default 1.5
  • strokeWidth: default 2

7. ClockLoading

  • size
  • duration
  • strokeWidth

8. DashLoading

  • size: default 40
  • duration: default 1.8
  • stroke

9. CopperLoading

  • size: default 40
  • strokeWidth: default 4

Development

npm install
npm start

# see demo in http://localhost:3000

Build

npm run build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].