Socket
Socket
Sign inDemoInstall

@sl-codeblaster/react-3d-animated-card

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sl-codeblaster/react-3d-animated-card

3D Animated card component for ReactJs.


Version published
Weekly downloads
45
increased by95.65%
Maintainers
1
Weekly downloads
 
Created
Source

@sl-codeblaster/react-3d-animated-card

3D Animated card component for ReactJs.

NPM JavaScript Style Guide

Install

with npm

npm install --save @sl-codeblaster/react-3d-animated-card

with yarn

yarn add @sl-codeblaster/react-3d-animated-card

You should need to import css file to your css file.

@import "~@sl-codeblaster/react-3d-animated-card/dist/index.css";

###Live Demo

alt text

##Usage

<AnimatedCard
    config={{
        rotation: 15, // this value for the divide (window.innerWidth / 2 - e.pageX) / rotation && (window.innerWidth / 2 - e.pageY) / rotation
        transition:{
            duration:0.5,
            timingMode: "ease"
        },
        transform:{
            figureIcon: {
                rotation: 20,
                translateZ: 160
            },
            titleTranslateZ: 140,
            bodyTextTranslateZ: 100,
            buttonTranslateZ: 80
        }
    }}
    style={{
        width:560 //container style (you can use className as well)
    }}
>

    <div className="card">
        <div className="figure">
            <div className="figure_bg"/> // not required, just used for design
            <img src={require('./images/image.png').default} alt=""/>
        </div>
        <div className="content">
            <h2 className="title">Animated Card</h2>
            <p className={"body"}>Lorem Ipsum is simply dummy text of the
                printing and typesetting industry</p>
        </div>
        <div className="footer">
            <button className={"footer_btn"}>BUTTON</button>
        </div>
    </div>

</AnimatedCard>

##Configuration use config prop to pass configuration object to the component.

PropertyValue
rotationnumber
transitionobject
transformobject
stylereact default style object
classNamestring

transition object

PropertyValue
durationnumber
timingMode'ease','ease-out','ease-in','ease-in-out' use one of these

transform object

PropertyValue
figureIconobject
titleTranslateZnumber
bodyTextTranslateZnumber
buttonTranslateZnumber

figureIcon object

PropertyValue
rotationnumber
translateZnumber

License

MIT © SL-CodeBlaster

Keywords

FAQs

Package last updated on 12 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