Skip to content

KinesisElement

KinesisElement is a component that will react to the user's interactions.

Props

PropTypeDefault ValueDescription
strengthNumber10Strength of the motion effect
typeString'translate'translate - translate-inv - rotate - scale - scaleX - scaleY - depth - depth-inv
transformOriginString'center'Similar to the CSS transform-origin property
originXNumber50The motion's origin relative to the container, on the X axis. 50 being the center of the container, 0 the left side, 100 the right side.
originYNumber50The motion's origin relative to the container, on the Y axis. 50 being the center of the container, 0 the top side, 100 the bottom side.
axisStringnullConstrain the movement to one axis. Possible values: 'x' - 'y'
maxXNumbernullLimit the maximum range of the movement on the X axis
maxYNumbernullLimit the maximum range of the movement on the Y axis
minXNumbernullLimit the minimum range of the movement on the X axis
minYNumbernullLimit the minimum range of the movement on the Y axis
cyclesNumber0How many times the movement will repeat