← all repositories
oil-oil/oil-motion

AI video, tamed into scroll-driven web animation

Oil Motion is an agent skill that turns AI-generated video into frame-precise web assets that follow scrolling, mouse, drag, and device tilt.

oil-motion
Too new to rank. Velocity needs a few days of history.
not enough history yet
star history

What it does: Oil Motion is a skill for coding agents like Claude Code and Codex that produces interactive web animation. You describe what should move, supply reference material, and say which input drives it (scroll, cursor, drag, touch, or device orientation). The agent then designs the motion, generates the in-between frames with AI video models, cleans and compresses them, and wires the result into the page. The browser never generates video on the fly; it scrubs or plays through a prebuilt sequence, so input stays responsive and repeatable.

The interesting bit: The pipeline locks down keyframes first, verifying that subject identity, structure, logo, and style hold steady before generating any continuous motion. That is the boring part, and it is where the value is: raw AI video drifts, sprouts extra limbs, and changes product structure mid-shot. Position, scale, cropping, damping, and rotation speed are left to ordinary code, which is more stable and easier to tweak than regenerating video.

Key highlights

  • Three output formats chosen by a budget script: baked-scene MP4, Alpha WebP sprite atlas, or green-screen MP4 with real-time WebGL keying.
  • Frame-by-frame cleanup removes pauses, near-duplicates, flicker, and structural glitches before delivery.
  • Compression targets the actual on-page display size, with separate desktop and mobile resources.
  • A pilot-first workflow: one keyframe pair and a short video must pass on a real page before batch generation, with SHA-256 checks blocking unapproved segments.
  • API keys live in the OS credential store, never in chat; local processing needs only Python 3.10+ and FFmpeg.

Caveats

  • Every AI generation is billed through ZenMux, so costs scale with how much video you produce.
  • The credential setup page needs Node.js 22.18+, and real-device verification so far covers macOS only.
  • The agent cannot fix wrong motion design, only cosmetic drift; bad keyframes mean regenerating.

Verdict: Worth a look if you build product pages or character interactions where the subject itself must change, and CSS, Lottie, or real-time 3D cannot carry it. If you just want button hovers and layout transitions, the authors themselves say to skip it.

Frequently asked

What is oil-oil/oil-motion?
Oil Motion is an agent skill that turns AI-generated video into frame-precise web assets that follow scrolling, mouse, drag, and device tilt.
Is oil-motion open source?
Yes — oil-oil/oil-motion is open source, released under the MIT license.
What language is oil-motion written in?
oil-oil/oil-motion is primarily written in Python.
How popular is oil-motion?
oil-oil/oil-motion has 3k stars on GitHub.
Where can I find oil-motion?
oil-oil/oil-motion is on GitHub at https://github.com/oil-oil/oil-motion.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.