1.3.0 • Published 2 years ago

fancy-loading-animation v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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-ballbug
loadingCharacterDirectionstringIt will choose the direction of the loading animation among left and rightleft
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 border1px 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-shadowinset 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.

Links

Github Linkedin Gmail Facebook