React-Preloading-Component is a css loading animation component library to use in React projects.
npm install --save react-preloading-component
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'));
<Bounce
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/>
<Eye
color="#FF4601" // Default hex color (string)
size="20" // Default Size in px (number)
/>
<Flag
color="#FF4601" // Default hex color (string)
size="10" // Default Size in px (number)
/>
<Grid
color="#FF4601" // Default hex color (string)
size="20" // Default Size in px (number)
/>
<Grow
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/>
<Lines
color="#FF4601" // Default hex color (string)
size="30" // Default Size in px (number)
/>
<Pop
color="#FF4601" // Default hex color (string)
size="10" // Default Size in px (number)
/>
<Progress
background="#EEEEEE" // Default hex background color (string)
color="#FF4601" // Default hex color (string)
speed="12s" // Default speed of bar (string)
/>
<Pulse
color="#FF4601" // Default hex color (string)
size="10" // Default Size in px (number)
/>
<Scan
color="#FF4601" // Default hex color (string)
size="25" // Default Size in px (number)
/>
<Spinner
color="#FF4601" // Default hex color (string)
secondaryColor="#E6E6E6" // Default hex color of ring (string)
size="40" // Default Size in px (number)
/>
<Text
color="#FF4601" // Default hex color (string)
fontSize="1.5em" // Default font size (string)
text="Loading" // Default text (string)
/>
<Third
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/>
<Triple
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/>
<Wave
color="#FF4601" // Default hex color (string)
size="12" // Default Size in px (number)
/>
- Fork the repo on GitHub
- Clone the project to your own machine
- Add your component and Update the
README.md
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request
This project is licensed under the MIT License.