Chroma Card

Card with chromatic color shifting effect

chroma-card-tw

Customize

Image & Card

0.67
5
6
30
1

Camera

60
7

Hover Effects

0.3
0.02
0.095
3

Interaction

0.2
0.1
0.5
0.4

Props

NameTypeDefaultDescription
widthnumber | string"100%"Width of the component in pixels or CSS value
heightnumber | string"100%"Height of the component in pixels or CSS value
imageSrcstring"https://..."Image source URL
imageAspectRationumber0.67Aspect ratio of the source image
cardWidthnumber5Width of the 3D card
cardHeightnumber6Height of the 3D card
zoomLevelnumber0.3Zoom level on hover (0-1)
rgbShiftAmountnumber0.02RGB chromatic aberration shift amount (0-0.1)
pixelDisplaceAmountnumber0.095Pixel displacement amount on hover (0-0.5)
hoverDurationnumber3Duration of hover animation in seconds
rotationIntensitynumber0.2Rotation intensity on mouse move (0-1)
scaleIntensitynumber0.1Scale intensity on mouse move (0-0.5)
positionIntensitynumber0.5Position movement intensity on mouse move (0-2)
interactionDurationnumber0.4Duration of interaction animations in seconds
opacitynumber1Master opacity (0-1)
cameraFovnumber50Camera field of view
cameraZnumber7Camera Z position
borderRadiusnumber30Border radius in pixels
classNamestring""Additional CSS classes
childrenReact.ReactNodeundefinedContent to render on top of the effect