Opus Motion ★ Star on GitHub

FX · swirl-portal

Swirl portal (goo-rim toon hole)

A vertical oval hole in the world with a lumpy thickly outlined goo rim, five spiral arms in two alternating tints rotating inside, a pale hot core, orbiting sparks, drips off the bottom and flat rings of glow; pops open with an overshoot and boils on threes.

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

Swirl portal (goo-rim toon hole): three frames of the visual effect, start, middle and end
Swirl portal (goo-rim toon hole) — start, middle and end of the 4.0-second motion.

What Swirl portal (goo-rim toon hole) is for

A "jump" device: a product teleporting between use cases, a meanwhile-in-another-universe beat, a doorway reveal for a picture (src inside the core), a playful CTA hole. Pairs with portal-wipe. Overlay-capable.

  • portal
  • swirl
  • toon
  • hole
  • wormhole
  • sci-fi
  • transition
  • jump
  • spiral
  • goo
  • boil
  • overlay
  • doorway
  • teleport

Details

Category
Visual effects & particles
Length
4.0 s (120 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
background
Image props
src
Mood
3d, comic, playful
Roles
accent

Use Swirl portal (goo-rim toon hole) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render swirl-portal --props '{"background":"#1f2547","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export swirl-portal --as webm-alpha --props '{"background":"#1f2547","src":""}'

React / Next.js

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

<MotionPlayer
  motion="swirl-portal"
  props={{background: '#1f2547', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="swirl-portal"
  props='{"background":"#1f2547","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "swirl-portal",
      "props": {
        "background": "#1f2547",
        "src": ""
      }
    }
  ]
}

Swirl portal (goo-rim toon hole) props

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

PropDefaultWhat it does
x0.5centre x (0..1 of frame width)
y0.5centre y (0..1 of frame height)
radius400radius in u (1u = 1px of a 1080 short side)
openAt5frame the pop-open starts (-1 = use `open` directly, 0..1, for a transition driver)
open1manual open amount 0..1+ when openAt = -1
spin1arm spin speed multiplier
ovalX0.74x-scale: 0.74 oval, 1.0 for a wipe
colors{"rim":"#241a46","armA":"#6f55f0","armB":"#ff6fae","core":"#ffe9f4","glow":"#b99cff"}{rim, armA, armB, core, glow} (non-green by default)
sparks12orbiting spark count
dripstruedrips off the bottom once open
wash0.12full-frame flat tint alpha while open
boiltruewobble the outline on threes
src""optional image shown through the hole instead of the arms
background"#1f2547"backdrop colour; empty string = transparent overlay
seed4rim lump seed

Notes & credits

Technique sources:

  • lemo-opuscar styles/scifi-toon demo/worlds.js (portal), demo/main.js (popOpen), DEMO.md "The portal" (MIT, LemoLab)