RNA Lines

High-performance interactive glowing DNA/RNA revolving double helix strand sways.

The RNA Lines component creates glowing flowing double-helix curves with organic twisting, phase sways, and interactive pointer sways.

Preview

Usage

Installation

$ pnpm dlx shadcn add https://klarden.vercel.app/r/rna-lines.json

Basic Example

import { RnaLines } from "@/registry/klarden-ui/rna-lines";

export default function App() {
  return (
    <RnaLines
      speed={1}
      opacity={0.8}
      className="h-screen w-full"
    />
  );
}

Properties

PropTypeDefaultDescription
speednumber1Animation speed multiplier. Higher values = faster animation.
opacitynumber0.8Canvas opacity (0-1). Use to blend with background layers.
classNamestringAdditional CSS classes for the container.
childrenReactNodeOverlay content to display on top of the RNA lines background.