Opus Motion ★ Star on GitHub

Data · dna-helix-unzip

DNA helix unzip

A rotating DNA double helix draws on, coloured A-T / G-C base-pair rungs fill in, then a zipper point runs along the axis and the two strands peel apart into half-rungs with letter tags.

A free, MIT-licensed animated chart from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

DNA helix unzip: three frames of the animated chart, start, middle and end
DNA helix unzip — start, middle and end of the 6.0-second motion.

What DNA helix unzip is for

Biology / genetics explainers, "copying the code" or "unlocking" metaphors, biotech and health intros.

  • science
  • biology
  • dna
  • helix
  • genetics
  • unzip

Details

Category
Animated charts & data visualisation
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title caption
Colour props
background strandA strandB inkColor
Mood
hud
Roles
subject

Use DNA helix unzip in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add dna-helix-unzip --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render dna-helix-unzip --props '{"title":"REPLICATION","caption":"EACH STRAND BECOMES A TEMPLATE","background":"#0E1726","strandA":"#4FC3F7","strandB":"#F48FB1","inkColor":"#E8EEF6"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export dna-helix-unzip --as mp4 --props '{"title":"REPLICATION","caption":"EACH STRAND BECOMES A TEMPLATE","background":"#0E1726","strandA":"#4FC3F7","strandB":"#F48FB1","inkColor":"#E8EEF6"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="dna-helix-unzip"
  props={{
    title: 'REPLICATION',
    caption: 'EACH STRAND BECOMES A TEMPLATE',
    background: '#0E1726',
    strandA: '#4FC3F7',
    strandB: '#F48FB1',
    inkColor: '#E8EEF6',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="dna-helix-unzip"
  props='{"title":"REPLICATION","caption":"EACH STRAND BECOMES A TEMPLATE","background":"#0E1726","strandA":"#4FC3F7","strandB":"#F48FB1","inkColor":"#E8EEF6"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "dna-helix-unzip",
      "props": {
        "title": "REPLICATION",
        "caption": "EACH STRAND BECOMES A TEMPLATE",
        "background": "#0E1726",
        "strandA": "#4FC3F7",
        "strandB": "#F48FB1",
        "inkColor": "#E8EEF6"
      }
    }
  ]
}

DNA helix unzip props

15 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
title"REPLICATION"heading above the helix
caption"EACH STRAND BECOMES A TEMPLATE"line shown once the strands have separated
sequence"ATGCGTACCGATTAGC"bases for strand A (A/T/G/C); complements are derived; repeats if shorter than pairs
background"#0E1726"scene background colour
strandA"#4FC3F7"colour of the first backbone
strandB"#F48FB1"colour of the second backbone
inkColor"#E8EEF6"text and guide colour
baseColors{"A":"#FFB74D","T":"#81C784","G":"#BA68C8","C":"#FFF176"}colour per base {A,T,G,C}
pairs16number of base-pair rungs
turns2helix turns along the axis
spin1rotation speed multiplier (0 = still)
unzipAt70frame the unzip starts
unzipFrames80length of the unzip in frames
letterstrueshow base letters on the separated half-rungs
seed3seed for bases when sequence is empty

Notes & credits

Technique sources:

  • original