react-spring-loaders

1.0.1 • Public • Published

Spring Loaders React Component

Loading Spinner: Spring Loaders with Rebound and Canvas

NPM JavaScript Style Guide

  • Loading Spinners - Choose one of the settings available

  • Make Your Own - Configure any loading spinner made of polygonal shapes

Demo

Demo

Live Demo

Install

npm install --save react-spring-loaders

Usage

import React, { Component } from 'react'
 
import SpringLoader from "react-spring-loaders";
 
const settings = {
  rebound: {
    tension: 14,
    friction: 10
  },
  spinner: {
    id: "spinner",
    radius: 90,
    sides: 6,
    depth: 8,
    colors: {
      background: "#00272C",
      stroke: null,
      base: null,
      child: "#02C39A"
    },
    alwaysForward: true, // When false the spring will reverse normally.
    restAt: null, // A number from 0.1 to 0.9 || null for full rotation
    renderBase: false
  }
};
 
export default class App extends Component {
  render() {
    return (
      <div>
        <SpringLoader settings={settings} />
        {/* Default Settings 
        <SpringLoader /> */}
      </div>
    );
  }
}

License

MIT © kalifa17

Credits

Readme

Keywords

none

Package Sidebar

Install

npm i react-spring-loaders

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

289 kB

Total Files

6

Last publish

Collaborators

  • kalifa17