gitwtfhub

wtf is oil-motion?

oil-oil/oil-motion — explained in plain English

Analysis updated 2026-08-13

1,668PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

Oil Motion is an AI agent skill that generates smooth animation sequences from images and wires them to page scroll, mouse, drag, or touch input.

Mindmap

mindmap
  root((Oil Motion))
    What it does
      Agent animation skill
      Scroll and input driven
      AI generated frames
    Tech stack
      Python
      WebGL
      WebP or MP4
    Use cases
      Product showcases
      Character interaction
      Data visualization
    Audience
      Developers
      Agent builders
    Process
      Confirm key frames
      Generate motion
      Compress for web

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Animate a product image so it unfolds or transforms as a visitor scrolls the page

REASON 2

Make a character or product image turn to naturally follow the mouse cursor

REASON 3

Create a drag-controlled progress animation tied to a slider or handle

REASON 4

Build touch or device-orientation driven animations for a mobile web page

What's in the stack?

PythonWebGLWebPMP4

How it stacks up

oil-oil/oil-motionwxyhgk/retain-pdfbigdawnghost/wenyi
Stars1,6681,6541,647
LanguagePythonPythonPython
Setup difficultymoderateeasymoderate
Complexity3/53/53/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires configuring an API key for AI video generation the first time an animation is created.

MIT license: use, modify, and share freely, including commercially, as long as you keep the copyright notice.

Wtf does this do

Oil Motion is a skill for AI agents that designs and generates smooth, continuous animation sequences and wires them into a webpage so the animation responds to scrolling, mouse movement, dragging, touch, or device orientation. To use it, you describe what you want to express, provide the source images, and say what user action should drive the animation. The agent handles the actual generation, checking, compression, and front end implementation. The kinds of animation it is built for include a product gradually unfolding or changing state as a page scrolls, a character or product turning naturally to follow the mouse, an animation tracking forward and backward as a user drags a progress bar, and touch or device orientation control on mobile. These effects are meant for product showcases, character interactions, demos, data visualization, and section transitions. Because an AI generated video can only play from start to finish in one direction, Oil Motion first generates a continuous stretch of motion and then maps the user's action to a position within that animation. For example, if a product unfolding animation has 100 frames total, scrolling to 30% shows frame 30 and scrolling to 70% shows frame 70, scrolling backward moves through the same frames in reverse. Mouse, drag, and device orientation inputs are mapped the same way, just with a different input source. The process happens in three stages. First, the agent confirms key frames, meaning it generates and checks a few critical states, like the product intact, halfway unfolded, and fully unfolded, to make sure the subject's identity, structure, logo, composition, and style stay consistent. Second, it generates the continuous motion between those confirmed key frames using AI video generation, while movement speed, cropping, and playback direction stay under program control rather than needing the video model regenerated. Third, it processes the resulting video into a controllable web resource, trimming any lead in or lead out, removing near duplicate frames, catching flicker or structural changes, and compressing based on how large the animation actually displays on the page. Oil Motion automatically chooses between an image sequence in WebP format or a green screen keyed MP4 video depending on animation size, length, access pattern, and device budget, without requiring the user to understand the technical tradeoffs. It is released under the MIT license.

Yoink these prompts

Prompt 1
Use $oil-motion to turn these two product images into a scroll-driven unfolding animation
Prompt 2
Use $oil-motion to design a scroll-linked hero animation for this product's homepage
Prompt 3
Use $oil-motion to make this character follow the mouse with responsive, non-jittery motion
Prompt 4
Help me configure Oil Motion to choose between a WebP image sequence and a green-screen MP4

Frequently asked questions

wtf is oil-motion?

Oil Motion is an AI agent skill that generates smooth animation sequences from images and wires them to page scroll, mouse, drag, or touch input.

What language is oil-motion written in?

Mainly Python. The stack also includes Python, WebGL, WebP.

What license does oil-motion use?

MIT license: use, modify, and share freely, including commercially, as long as you keep the copyright notice.

How hard is oil-motion to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is oil-motion for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.