Opus Motion ★ Star on GitHub

Worlds · insect-flight

Insect dart flight (dragonflies / fireflies)

Red dragonflies zig-zag over a sunny lotus pond in fast expo-eased darts separated by jittery hovers, their translucent wings flickering every frame, and one lands on a lotus bud and folds its wings; firefly mode fills a night meadow with glowing, blinking fireflies drifting between waypoints.

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

Insect dart flight (dragonflies / fireflies): three frames of the animated background, start, middle and end
Insect dart flight (dragonflies / fireflies) — start, middle and end of the 6.0-second motion.

What Insect dart flight (dragonflies / fireflies) is for

Nature ambience, "a small idea arrives / lands" beats, summer or night atmosphere.

  • insects
  • dragonfly
  • firefly
  • nature
  • pond
  • night

Details

Category
Animated worlds & backdrops
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
color glowColor
Mood
mid, nature, night
Roles
backdrop, accent
Pairs with
Grass field (teal blades + golden leaves), Starfield night, Handwrite-on title

Use Insect dart flight (dragonflies / fireflies) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render insect-flight --props '{"color":"#c0392b","glowColor":"#e8ff8a"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export insect-flight --as webm-alpha --props '{"color":"#c0392b","glowColor":"#e8ff8a"}'

React / Next.js

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

<MotionPlayer
  motion="insect-flight"
  props={{color: '#c0392b', glowColor: '#e8ff8a'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="insect-flight"
  props='{"color":"#c0392b","glowColor":"#e8ff8a"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "insect-flight",
      "props": {
        "color": "#c0392b",
        "glowColor": "#e8ff8a"
      }
    }
  ]
}

Insect dart flight (dragonflies / fireflies) props

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

PropDefaultWhat it does
kind"dragonfly""dragonfly" (sunny pond) or "firefly" (night meadow)
count3number of dragonflies
fireflies40number of fireflies (firefly mode)
color"#c0392b"dragonfly body colour
dartFrames5frames per dart (dragonfly; fireflies are slower)
holdFrames7hover frames between darts
landtruethe first dragonfly lands on the lotus bud
glowColor"#e8ff8a"firefly glow colour
scenetruepaint the pond / meadow background (false = transparent overlay)
seed"pond"random seed

Notes & credits

Technique sources:

  • video1 0:42-0:46 insect-dart-land (dragonfly)
  • video2 insect-zigzag-flight