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

widthnumber | string

Width of the component in pixels or CSS value

Default:"100%"
heightnumber | string

Height of the component in pixels or CSS value

Default:"100%"
imageSrcstring

Image source URL

Default:"https://..."
imageAspectRationumber

Aspect ratio of the source image

Default:0.67
cardWidthnumber

Width of the 3D card

Default:5
cardHeightnumber

Height of the 3D card

Default:6
zoomLevelnumber

Zoom level on hover (0-1)

Default:0.3
rgbShiftAmountnumber

RGB chromatic aberration shift amount (0-0.1)

Default:0.02
pixelDisplaceAmountnumber

Pixel displacement amount on hover (0-0.5)

Default:0.095
hoverDurationnumber

Duration of hover animation in seconds

Default:3
rotationIntensitynumber

Rotation intensity on mouse move (0-1)

Default:0.2
scaleIntensitynumber

Scale intensity on mouse move (0-0.5)

Default:0.1
positionIntensitynumber

Position movement intensity on mouse move (0-2)

Default:0.5
interactionDurationnumber

Duration of interaction animations in seconds

Default:0.4
opacitynumber

Master opacity (0-1)

Default:1
cameraFovnumber

Camera field of view

Default:50
cameraZnumber

Camera Z position

Default:7
borderRadiusnumber

Border radius in pixels

Default:30
classNamestring

Additional CSS classes

Default:""
childrenReact.ReactNode

Content to render on top of the effect

Default:undefined