Opus Motion ★ Star on GitHub

Image looks · sticker-slap

Sticker slap

Photo or icon cut-outs with a thick white outline drop onto the page from above the camera: large, tilted and blurred with a wide soft shadow, then land flat with a tiny squash and a two-cycle wobble while the shadow tightens on contact and the whole page jolts a few pixels.

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

Sticker slap: three frames of the image effect, start, middle and end
Sticker slap — start, middle and end of the 4.0-second motion.

What Sticker slap is for

The universal photo-to-sticker treatment for explainers, social posts and product callouts. Give transparent PNG cut-outs as src; overlay-capable with background transparent.

  • sticker
  • cutout
  • die-cut
  • outline
  • slap
  • drop
  • photo
  • shadow
  • wobble
  • collage
  • overlay
  • social

Details

Category
Image looks & photo effects
Length
4.0 s (120 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
yes
Seamless loop
no
Text props
items title
Colour props
background outlineColor shadowColor
Mood
photo, pixel
Roles
backdrop, accent

Use Sticker slap in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render sticker-slap --props '{"items":[{"kind":"cup","src":"","x":0,"y":0.02,"size":440,"at":22,"rot":-3},{"kind":"bolt","src":"","x":-0.27,"y":-0.2,"size":220,"at":40,"rot":-10},{"kind":"flower","src":"","x":0.27,"y":0.2,"size":240,"at":56,"rot":8}],"title":"FRESH DROP","background":"#F3ECE0","outlineColor":"#FFFFFF","shadowColor":"#2A1F14"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export sticker-slap --as webm-alpha --props '{"items":[{"kind":"cup","src":"","x":0,"y":0.02,"size":440,"at":22,"rot":-3},{"kind":"bolt","src":"","x":-0.27,"y":-0.2,"size":220,"at":40,"rot":-10},{"kind":"flower","src":"","x":0.27,"y":0.2,"size":240,"at":56,"rot":8}],"title":"FRESH DROP","background":"#F3ECE0","outlineColor":"#FFFFFF","shadowColor":"#2A1F14"}'

React / Next.js

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

<MotionPlayer
  motion="sticker-slap"
  props={{
    items: [
      {kind: 'cup', src: '', x: 0, y: 0.02, size: 440, at: 22, rot: -3},
      {
        kind: 'bolt',
        src: '',
        x: -0.27,
        y: -0.2,
        size: 220,
        at: 40,
        rot: -10,
      },
      {kind: 'flower', src: '', x: 0.27, y: 0.2, size: 240, at: 56, rot: 8},
    ],
    title: 'FRESH DROP',
    background: '#F3ECE0',
    outlineColor: '#FFFFFF',
    shadowColor: '#2A1F14',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="sticker-slap"
  props='{"items":[{"kind":"cup","src":"","x":0,"y":0.02,"size":440,"at":22,"rot":-3},{"kind":"bolt","src":"","x":-0.27,"y":-0.2,"size":220,"at":40,"rot":-10},{"kind":"flower","src":"","x":0.27,"y":0.2,"size":240,"at":56,"rot":8}],"title":"FRESH DROP","background":"#F3ECE0","outlineColor":"#FFFFFF","shadowColor":"#2A1F14"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "sticker-slap",
      "props": {
        "items": [
          {
            "kind": "cup",
            "src": "",
            "x": 0,
            "y": 0.02,
            "size": 440,
            "at": 22,
            "rot": -3
          },
          {
            "kind": "bolt",
            "src": "",
            "x": -0.27,
            "y": -0.2,
            "size": 220,
            "at": 40,
            "rot": -10
          },
          {
            "kind": "flower",
            "src": "",
            "x": 0.27,
            "y": 0.2,
            "size": 240,
            "at": 56,
            "rot": 8
          }
        ],
        "title": "FRESH DROP",
        "background": "#F3ECE0",
        "outlineColor": "#FFFFFF",
        "shadowColor": "#2A1F14"
      }
    }
  ]
}

Sticker slap props

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

PropDefaultWhat it does
items[{"kind":"cup","src":"","x":0,"y":0.02,"size":440,"at":22,"rot":-3},{"kind":"bolt","src…stickers[{kind: cup|bolt|flower|camera (procedural fallback), src: transparent PNG path (optional), x,y: offset from centre as fraction of width/height, size, at: landing frame, rot: resting degrees}]
background"#F3ECE0"page colour ('transparent' to use as an overlay)
title"FRESH DROP"big faint word behind the stickers
outline11white outline thickness in px at 1080p (8-12)
outlineColor"#FFFFFF"outline colour
shadowColor"#2A1F14"drop shadow colour
slapFrames7frames of the drop (0.2 s = 6-7)
fromScale1.3start scale (above the camera)
fromRotate6start tilt in degrees
wobbletruetwo-cycle wobble after landing
jolt6page jolt in px at each landing (4-8)

Notes & credits

Technique sources:

  • mg-styles-15 demos/19-paperclip slap() / shadow(), tools/stickers.py cutout(), 06-collage rimmed() (MIT)