1.0.7 • Published 4 years ago

react-animated-cubes v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

react-animated-cubes

Simple Three JS Cube Edges Falling Animation

DEMO

Installation

npm install --save react-animated-cubes

Use npm start to preview

Simple Usage

  <AnimatedCubes />

Props

namerequiredtypedefaultdescription
backgroundColorfalsestring"#262626"Background color of the \<canvas>
edgeColorfalsestring"#59c0bb"Edge color of the cubes
maxEdgeLengthfalsenumber500Maximum edge length
minEdgeLengthfalsenumber100Minimum edge length
maxFallingSpeedfalsenumber10Maximum falling speed per frame
minFallingSpeedfalsenumber5Minimum falling speed per frame
maxRotationSpeedfalsenumber0.03Maximum rotation speed per frame (1 = 360°)
minRotationSpeedfalsenumber0.01Minimum rotation speed per frame (1 = 360°)
numberOfCubesfalsenumber5Maximum number of cubes to be falling at once
stylefalseObjectStyle of container div

Support

If you like this plugin, please consider donating to a small time developer (me)!

Donate