Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 558 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 558 Bytes

React Funny Loaders

Look demo how it works: Demo

Install

npm i funny-loaders

Usage

import React from 'react';
import Panzer from "funny-loaders";

function App() {
    return (
        <div className="App">
            <Panzer patrolPathLength={20} size="normal" panzerSpeed={4}/>
            //or without props
            <Panzer />
        </div>
    );
}

API

size = "small" || "normal" || "big"
patrolPathLength: {number} in rem
panzerSpeed: {number} in seconds