
基础动画
Rack focus
@opus-motion-library/rack-focus
Focus pulls between a foreground, a subject and a background layer: blur follows depth, bokeh blooms, lens breathes.
安装
node cli/mgl.mjs add rack-focus --to <your-project>/src适用场景
- 适合
- Shifting attention from one thing to another in a still-image scene; cinematic reveals; product-then-environment shots; drama beats.
规格
- 时长
- 150f · 5s
- 时长类型
- 固定时长
- FPS
- 30
- 风格
- cinematic
- 许可证
- MIT
Props(10)
backSrcstring= ""background picture (empty = procedural)
subjectSrcstring= ""transparent PNG subject (empty = procedural figure)
frontSrcstring= ""transparent PNG foreground (empty = procedural blades)
focusKeysarray= [[0,0.5],[30,0.5],[60,0],[90,0],[122,1]][frame, focus] keys: 0 = foreground, 0.5 = subject, 1 = background
maxBlurnumber= 46blur at the furthest depth in u
breathingnumber= 1lens breathing amount (0 = none)
bokehboolean= truebokeh discs bloom on the blurred background
palettearray= ["#ff7a59","#6a4cff","#14b8a6","#ffd166"]colours for procedural layers / bokeh
accentstring= "#ffd166"procedural subject accent
backgroundstring= "#000000"base colour