0.0.5 • Published 7 years ago

react-preloading-component v0.0.5

Weekly downloads
35
License
MIT
Repository
-
Last release
7 years ago

React-Preloading-Component

React-Preloading-Component is a css loading animation component library to use in React projects.

Check out a live demo

Getting Started

npm install --save react-preloading-component

Usage

Here is a quick example using the <Wave /> component to get you started:

import React from 'react';
import { render } from 'react-dom';

import { Wave } from 'react-preloading-component';

const App = () => (
  <div>
    <Wave />
  </div>
);

render(<App />, document.querySelector('#app'));

Options

<Bounce />

<Bounce
  color="#FF4601" // Default hex color (string)
  size="40" // Default Size in px (number)
/>

<Eye />

<Eye
  color="#FF4601" // Default hex color (string)
  size="20" // Default Size in px (number)
/>

<Flag />

<Flag
  color="#FF4601" // Default hex color (string)
  size="10" // Default Size in px (number)
/>

<Grid />

<Grid
  color="#FF4601" // Default hex color (string)
  size="20" // Default Size in px (number)
/>

<Grow />

<Grow
  color="#FF4601" // Default hex color (string)
  size="40" // Default Size in px (number)
/>

<Lines />

<Lines
  color="#FF4601" // Default hex color (string)
  size="30" // Default Size in px (number)
/>

<Pop />

<Pop
  color="#FF4601" // Default hex color (string)
  size="10" // Default Size in px (number)
/>

<Progress />

<Progress
  background="#EEEEEE" // Default hex background color (string)
  color="#FF4601" // Default hex color (string)
  speed="12s" // Default speed of bar (string)
/>

<Pulse />

<Pulse
  color="#FF4601" // Default hex color (string)
  size="10" // Default Size in px (number)
/>

<Scan />

<Scan
  color="#FF4601" // Default hex color (string)
  size="25" // Default Size in px (number)
/>

<Spinner />

<Spinner
  color="#FF4601" // Default hex color (string)
  secondaryColor="#E6E6E6" // Default hex color of ring (string)
  size="40" // Default Size in px (number)
/>

<Text />

<Text
  color="#FF4601" // Default hex color (string)
  fontSize="1.5em" // Default font size (string)
  text="Loading" // Default text (string)
/>

<Third />

<Third
  color="#FF4601" // Default hex color (string)
  size="40" // Default Size in px (number)  
/>

<Triple />

<Triple
  color="#FF4601" // Default hex color (string)
  size="40" // Default Size in px (number)
/>

<Wave />

<Wave
  color="#FF4601" // Default hex color (string)
  size="12" // Default Size in px (number)
/>

Contributing

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Add your component and Update the README.md
  4. Commit changes to your own branch
  5. Push your work back up to your fork
  6. Submit a Pull request

License

This project is licensed under the MIT License.

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago