MantleUI

DNAHelix

An animated 3D double helix with two colored strands and connecting rungs. Built with Three.js and @react-three/fiber.

Interactive Demo

Loading DNA helix...

Strand 1 Color

Strand 2 Color

Speed: 1.0

Usage

import { DNAHelix } from "@mantleui/react/three";
<DNAHelix
color1="#3b82f6"
color2="#ef4444"
speed={1}
height={400}
/>

Props

color1"#3b82f6"
string

First strand color.

color2"#ef4444"
string

Second strand color.

rungColor"rgba(255,255,255,0.3)"
string

Connecting rung color.

speed1
number

Rotation speed multiplier.

radius0.5
number

Helix radius.

turns3
number

Number of helix turns.

height400
string | number

Container height.

backgroundColor"transparent"
string

Background color of the container.

© 2026 MantleUI. All rights reserved.