<AnimatedCardconfig={{rotation: 15,// this value for the divide (window.innerWidth / 2 - e.pageX) / rotation && (window.innerWidth / 2 - e.pageY) / rotationtransition:{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)}}><divclassName="card"><divclassName="figure"><divclassName="figure_bg"/> // not required, just used for design
<imgsrc={require('./images/image.png').default}alt=""/></div><divclassName="content"><h2className="title">Animated Card</h2><pclassName={"body"}>Lorem Ipsum is simply dummy text of the
printing and typesetting industry</p></div><divclassName="footer"><buttonclassName={"footer_btn"}>BUTTON</button></div></div></AnimatedCard>
Configuration
use config prop to pass configuration object to the component.
Property
Value
rotation
number
transition
object
transform
object
style
react default style object
className
string
transition
Property
Value
duration
number
timingMode
'ease','ease-out','ease-in','ease-in-out' use one of these