前端开发

motion-background

iart-ai/motion-…n-skills

This skill should be used when the user asks to "add an animated background", "build a mesh/gradient background", "make an aurora/shader background", "add constellation/particle background", "animated hero background", or "a subtle looping background behind content". Covers CSS mesh gradients, GLSL shader gradients (Three.js), canvas particle constellations, seamless loops, and reduced-motion/performance handling — fully self-contained.

  • 3007 次安装
  • 174 星标
  • 收录于

安装命令

npx skills add https://github.com/iart-ai/motion-design-skills --skill motion-background

SKILL.md

Motion Background

Ambient, living backgrounds that sit behind content without stealing focus. The goal is subtle, seamlessly looping motion that stays readable and performant. This skill is self-contained: every technique below ships its own runnable code — CSS, GLSL, and canvas — with no external dependencies beyond Three.js where a shader is involved.

When to use

  • Hero/landing background that subtly moves; section ambience.
  • Login/splash/empty-state living backdrops.
  • A gradient, mesh, aurora, shader, or particle/constellation field behind text or UI.

Pick an approach

Look Technique Cost
Soft animated gradient/mesh CSS gradients + keyframes Cheapest, no JS
Flowing aurora / organic noise GLSL fragment shader (Three.js full-screen quad) GPU, moderate
Constellation / drifting dots Canvas 2D particles CPU, scales with count
Depth / parallax Same shader/particles with mouse-driven offset Moderate