New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fancy-loading-animation

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fancy-loading-animation

The package contains some fancy looking loading animation components to use in react project. There are many usefull props to easily customize the component to meet any need.

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
6
50%
Maintainers
1
Weekly downloads
 
Created
Source

Fancy-Loading-Animation

The package contains some fancy looking loading animation components to use in react project. There are many usefull props to easily customize the component to meet any need.

NPM JavaScript Style Guide

Demo

DEMO

Installation

Install my component with npm

  npm i fancy-loading-animation

Screenshots

fancy-loading-animation-demo

Usage/Examples

Import my component and use where you want to show the loading animation.

import React from 'react'
import FancyLoadingAnimation from 'fancy-loading-animation'
import 'fancy-loading-animation/dist/index.css'

const App = () => {
  return (
    <FancyLoadingAnimation
      loadingAnimationVarient='bee'
      loadingAnimationDelay={0.3}
      loadingCharacterDirection='right'
      loadingTextStyle={{ color: 'orange' }}
      
    />
  )
}
export default App

API Reference

These are the props to customize the component.

PropsTypeDescriptionDefault
loadingAnimationVarientstringIt will choose the varient of the loading animation among [bug, bee, blue-bat, ghost, green-monster, hairy-monster, paper-bird, puppy and robot-ball]bug
loadingCharacterDirectionstringIt will choose the direction of the loading animation among [left and right]left
loadingAnimationDelaynumberIt will slow/fast the loading animation among1
loadingSizenumberIt will increase/decrease the whole animation size1
loadingSizenumberIt will increase/decrease the whole animation size1
loadingContainerVisibilitybooleanControl the visibility of the container of the animationtrue
loadingContainerWidthnumberControl the width of the background container of the animation280
loadingContainerHeightnumberControl the height of the background container of the animation280
loadingContainerBorderstringModify the border of the background container of the animation [css property of border]1px solid rgb(0, 0, 0, 0.3)
loadingContainerColorcolorModify the color of the background container of the animation [css property of background-color]#d8d8d8
loadingContainerShadowstringModify the shadow property of the background container of the animation [css property of box-shadow]inset 15px 15px 10px #999
loadingTextstringSets the loading textLoading
loadingDotShowbooleanSelect whether to show dots after loading texttrue

Advance

If one wants to dive deeper and modify all the CSS property of all the animation elements [Container, Animation Character, Loading Text] then below props will help

PropsTypeDescriptionDefault
loadingContainerStyleCSS style ObjectValue pass through this props will set the style property of the container of the loading animation{}
loadingAnimationStyleCSS style ObjectValue pass through this props will set the style property of the loading animation character{}
loadingTextStyleCSS style ObjectValue pass through this props will set the style property of the loading text{}

Acknowledgements

I would like to show my gratitude towards below free sources/ assets/ tutorials to help me making this component.

License

MIT © OmorFarukRakib

Support

For support, please mail me at omorfarukrakib@gmail.com.

Github Linkedin Gmail Facebook

Keywords

react

FAQs

Package last updated on 06 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts