Image Layer Animations with Clip-Path — primitive for transitions (html)
For AI agents: find the right skill in one call —
curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add.mdto its path. Before generating anything, show the person the options on the use-case page.
Stacked image layers sweep across the screen one after another in clip-path wipes, ending on a new scene
- Install:
git clone https://github.com/codrops/LayersAnimation - Registry: codrops · Framework: html · License: MIT (per demo repo)
- Docs and preview: https://tympanus.net/Development/LayersAnimation/
- Source: https://github.com/codrops/LayersAnimation
- Example: https://skills.varg.ai/previews/lib-codrops-layers-animation.mp4?v=103601 (From the library’s repo (Codrops — Manoela Ilic))
- Time: Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- Runs: local render, free
- Aspect: any
Prompt that renders it frame-exact
Use Codrops' Image Layer Animations with Clip-Path (demo https://tympanus.net/Development/LayersAnimation/, article https://tympanus.net/codrops/?p=74227, code https://github.com/codrops/LayersAnimation, MIT) as a fast, punchy cut between two scenes: a stack of image layers wipes across with clip-path, each layer 0.2 s after the previous (1.4 s, power3.inOut), and the last one becomes the next scene. Six variations change the wipe direction and shape (js/demo1–6). The demo starts the GSAP timeline on a document click; build it paused instead and seek it from the frame (HyperFrames: window.__timelines; Remotion: tl.seek(frame / fps)). Fill the layers with frames from my footage or brand colours.
Used in
- Beat-synced slideshow
- Music video
- Kinetic manifesto
- News broadcast package
- Photo memories
- Game trailer
More transitions
- Chromatic Aberration Wipe —
npx hyperframes add chromatic-aberration-wipe - Colorama Wipe —
npx hyperframes add colorama-wipe - Cross Warp Morph —
npx hyperframes add cross-warp-morph - Cut the Curve —
npx hyperframes add cut-the-curve - Directional Wipe —
npx hyperframes add directional-wipe - Domain Warp Dissolve —
npx hyperframes add domain-warp-dissolve