Opus Motion ★ Star on GitHub

FX · sdf-liquid-shade

SDF liquid shade

Coloured metaballs orbit and fuse into thick glossy jelly: smooth necks that blend their colours, dome-shaped diffuse shading from a key light, a hard specular highlight, a broad softbox sheen, a saturated translucent rim and a fading floor reflection.

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

SDF liquid shade: three frames of the visual effect, start, middle and end
SDF liquid shade — start, middle and end of the 5.0-second motion.

What SDF liquid shade is for

The shading look under liquid motions: drops, logo melts, blob loaders, liquid buttons and transitions; also a standalone glossy-goo background.

  • liquid
  • metaball
  • goo
  • jelly
  • glossy
  • gloss
  • shader
  • specular
  • rim
  • reflection
  • blob
  • fluid
  • sdf
  • lighting
  • background
  • loader

Details

Category
Visual effects & particles
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
colors background
Mood
—
Roles
subject

Use SDF liquid shade in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render sdf-liquid-shade --props '{"colors":["#ff4d8d","#ffb02e","#2ee6c8","#7a5cff","#ff6a3d","#3aa0ff"],"background":"#0d0820"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export sdf-liquid-shade --as mp4 --props '{"colors":["#ff4d8d","#ffb02e","#2ee6c8","#7a5cff","#ff6a3d","#3aa0ff"],"background":"#0d0820"}'

React / Next.js

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

<MotionPlayer
  motion="sdf-liquid-shade"
  props={{
    colors: ['#ff4d8d', '#ffb02e', '#2ee6c8', '#7a5cff', '#ff6a3d', '#3aa0ff'],
    background: '#0d0820',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="sdf-liquid-shade"
  props='{"colors":["#ff4d8d","#ffb02e","#2ee6c8","#7a5cff","#ff6a3d","#3aa0ff"],"background":"#0d0820"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "sdf-liquid-shade",
      "props": {
        "colors": [
          "#ff4d8d",
          "#ffb02e",
          "#2ee6c8",
          "#7a5cff",
          "#ff6a3d",
          "#3aa0ff"
        ],
        "background": "#0d0820"
      }
    }
  ]
}

SDF liquid shade props

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

PropDefaultWhat it does
colors["#ff4d8d","#ffb02e","#2ee6c8","#7a5cff","#ff6a3d","#3aa0ff"]ball colours (hex), cycled over the balls
count5number of balls
light225key light azimuth in degrees (225 = upper left)
gloss1specular strength
rim0.55saturated rim glow strength 0..1
reflection0.3floor reflection strength 0..1 (0 = none)
speed1orbit speed multiplier
blur14merge softness in px at 1080 (bigger = longer necks)
seed4seed for orbits and sizes
background"#0d0820"backdrop base colour

Notes & credits

Technique sources:

  • mg-styles-15 demos/07-liquid/js/shaders.js shadeLiquid / fadd (MIT)
  • video 07-liquid 0-10 s