CardsProNew

Holographic Foil

A foil card like a collectible. It tilts after the cursor while foil bands and a glare slide across.

Customize

foilTint
foilTint2
foilHighlight

Based on Holographic Foil (MIT license) · Terms of use

Props

12 properties
PropertyTypeDefaultDescription
pattern'silver' | 'aurora' | 'gold' | 'oil' | 'prism'"silver"Foil material.
intensitynumber0.6Foil strength, from 0 to 1.
glarenumber0.5Glare strength, from 0 to 1.
sheenSpeednumber1Speed of the sheen that sweeps the card by itself.
tiltbooleantrueTilt the card after the cursor.
foilOverbooleanfalseLay the foil over the content, e.g. over an image.
useDeviceOrientationbooleanfalseOn phones, tilt with the gyroscope after asking permission.
childrenReactNode—Card content.
classNamestring—Classes for the wrapper.
foilTintstring"#e5e5e5"Main foil color. While all three colors are grey, the chosen pattern is used. Any vivid color prints the foil in your colors.
foilTint2string"#a3a3a3"Second color of the foil bands.
foilHighlightstring"#ffffff"The lightest band of the foil.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all