FreeInteraction
Holo Card
A card that tilts in 3D to follow the cursor, with a holographic foil and a specular glare that react to movement.
- Plan
- Free · MIT
- Dependencies
- React only
- Props
- 15 (12 adjustable)
Free forever
MIT license, for personal and commercial projects. See installation
HologramOne-of-a-kind foil
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | "sample card" | Card content; if omitted, a sample collectible card is drawn. |
sampleTitle | string | "Hologram" | Title of the sample card (only visible if you don't pass children). |
sampleSubtitle | string | "One-of-a-kind foil" | Subtitle of the sample card (only visible if you don't pass children). |
width | number | 300 | Card width in px. |
height | number | 420 | Card height in px. |
maxTilt | number | 16 | Maximum tilt in degrees when the cursor reaches an edge. |
scale | number | 1.04 | How much the card grows on hover (1 = no growth). |
foil | number | 0.9 | Intensity of the holographic foil, from 0 to 1. |
glare | number | 0.7 | Intensity of the specular highlight that follows the cursor, from 0 to 1. |
hue | number | 0 | Color rotation of the foil, in degrees (0 to 360). |
perspective | number | 900 | Camera distance in px: lower means a more exaggerated perspective. |
radius | number | 22 | Corner rounding in px. |
idleAnimation | boolean | true | If true, the card sways on its own when nobody touches it (useful on touch screens). |
className | string | "" | Extra CSS class for the container. |
style | CSSProperties | "{}" | Inline styles for the container. |
Installation
Install it
1Install the package
npm i furin-ui2Import it
import { Hologram } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Dependencies
- React
- 18 or later
- Other libraries
- none
- License
- MIT
Each file ships its own CSS: there's nothing else to install.