DnaAnimation ​

A CSS-based 3D DNA helix animation component. Renders an animated double helix with configurable color, length, and opacity.

Basic Usage ​

Basic DNA animation with default settings.

Custom Color ​

Use color to change the helix color.

Custom Length ​

Use length to control the number of chain segments.

API ​

DnaAnimation Attributes ​

NameDescriptionTypeDefault
colorcolor of the DNA helixstring'#fff'
lengthnumber of chain segments (max 100)number20
opacityopacity of the animationnumber1

Source ​

Docs