4.0.0 • Published 5 years ago

@rihor/react-3d-card v4.0.0

Weekly downloads
1
License
-
Repository
github
Last release
5 years ago

animated-card-component

A library of React components created using create-react-app.

npm.io

Installation

Run the following command: npm install animated-card-component

Usage

A simple 3d button.

<div>
  <AnimatedCard weight={5}>
    <p>click me</p>
  </AnimatedCard>
</div>

A simple 3d button.

<div>
  <AnimatedCard weight={5} clickable={false}>
    <div>
      <p>We are untouchable</p>
      <p>We are untouchable</p>
      <p>We are untouchable</p>
    </div>
  </AnimatedCard>
</div>

Props

propsdefaultdescription
weight1.5Value that multiplies the cursor strength, the higher the value the lighter the content becomes.
clickabletrueBoolean for button styles, if it is as 'false' the content will not have the pointer cursor and will not have click animation.

Dependecies

react-spring: Library that allows animations with physics.

@rehooks/component-size: Using to get the component size.

4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago