Trail Effect

Ghost copies that trail behind a moving item, fading over time.

Usage

app.applyEffect(item, 'trail', {
  color: '#a78bfa',
  count: 8,
  size: 6,
  fadeRate: 2.0
});

Parameters

Parameter Type Default Description
color string '#a78bfa' Trail ghost color
speed number 1.0 Spawn rate multiplier
count number 8 Maximum trail ghosts
size number 6 Halo padding in pixels around the item bounds (ghost ≈ item size + padding)
fadeRate number 2.0 How fast ghosts fade out