Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-animated-3d-card

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-animated-3d-card

Animated 3d card that reacts to the user's mouse pointer

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
481
increased by47.09%
Maintainers
1
Weekly downloads
 
Created
Source

react-animated-3d-card

Animated 3d card that reacts to the user's mouse pointer

Each component that is a child to the Card component will be animated in 3d, the top one being flush with the card and each subsequent one higher than the one on top of it

Code Demo

Credit card

NPM JavaScript Style Guide

Install

npm install --save react-animated-3d-card

Usage

import React, { Component } from 'react'

import Card from 'react-animated-3d-card'

class Example extends Component {
  render() {
    return <Card       
      style={{
        backgroundColor: 'red',
        width: '450px',
        height: '300px',
        cursor: 'pointer'
      }}
      onClick={() => console.log('Card clicked')}
    />
  }
}

Available props

PropsTypeDefault valueExplanation
styleObject{}The style that will be applied to the card
onClickFunction-The function that will run when the card is clicked
borderRadiusString'20px'The radius of the card
isStaticBooleanfalseWhether the card is transformed in 3d or not
shineStrengthNumber0.4The strength of the shine from 0 to 1
cursorPointerBooleantrueWhether the cursor is a pointer or not

Example

License

MIT © jamipuchi

FAQs

Package last updated on 28 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc