3D Cube
Installation
Install Dependencies
Copy and Paste the component
@/components/reframe-ui/3d-cube.tsx
Usage
Props
Name | Type | Default | Required | Description |
---|---|---|---|---|
textures | [string, string, string, string, string, string] | - | Yes | Six image URLs, one per cube face. |
className | string | - | No | Container className. |
size | number | - | No | Cube edge length. |
spinSpeed | number | - | No | Base spin speed in radians/sec. |
scrollRotations | number | - | No | Number of full rotations across the scroll range. |
mouseIntensity | number | - | No | Max mouse tilt in radians (e.g., 0.3 ≈ 17°). |
© Copyright 2025. All rights reserved.Built by @thommysart