MorphingSphere
A continuously morphing 3D sphere with vertex displacement. Built with Three.js and @react-three/fiber.
Interactive Demo
Loading morphing sphere...
Color
Distortion: 0.3
Usage
import { MorphingSphere } from "@mantleui/react/three";
<MorphingSphere color="#3b82f6" distortion={0.3} wireframe={false} height={400}/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | "#3b82f6" | Sphere color. |
speed | number | 1 | Animation speed multiplier. |
distortion | number | 0.3 | Vertex displacement intensity. |
detail | number | 64 | Sphere geometry detail (segments). |
wireframe | boolean | false | Render as wireframe. |
height | string | number | 400 | Height of the container. |
backgroundColor | string | "transparent" | Background color of the container. |
color"#3b82f6"stringSphere color.
speed1numberAnimation speed multiplier.
distortion0.3numberVertex displacement intensity.
detail64numberSphere geometry detail (segments).
wireframefalsebooleanRender as wireframe.
height400string | numberHeight of the container.
backgroundColor"transparent"stringBackground color of the container.