2.1.3 • Published 6 years ago

animakit-rotator v2.1.3

Weekly downloads
50
License
MIT
Repository
github
Last release
6 years ago

AnimakitRotator

React component for the 3D rotation of the blocks. Supports up to 6 blocks, different sizes, and X/Y axis.

Usage

<AnimakitRotator side={this.state.loading}>
  <Button />
  <Loader />
</AnimakitRotator>

Demo

Installation

npm install animakit-rotator

Properties

PropertyRequiredTypeDefault ValueAvailable ValuesDescription
sidetruestringKey of the first childKey of the component childCurrent visible side, that contains a child with the corresponding key
axisfalsestringXX, YAxis of rotation
shadowfalsebooltrue, falseShadow on the rotator side. If you use 4 or less sides, it will be visible only while rotation
backgroundfalsestringAny color in hexadecimal formatColor of the rotator side, transparent by default
durationfalsenumber1000Any integer numberDuration of rotation
easingfalsestringcubic-bezier (.165,.84,.44,1)Any easing functionEasing function of rotation

Limitations

The appearance of the components may be affected due to the absolute positioning, so it is preferable to use fixed width or non-breakable spaces.

Origin

AnimakitRotator is the part of Animakit. See https://animakit.github.io for more details.

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

8 years ago

2.0.0-beta

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago