smooth-interpolation

Installation
SKILL.md

Smooth Interpolation

Animate values smoothly using exponential decay instead of linear interpolation.

Technique

Use exponential smoothing formulas to interpolate between current and target values. This creates a natural easing effect that's frame-rate independent.

Key Concepts

  • Exponential smoothing: (target - current) * (1 - Math.exp(-speed * dt))
  • Exponential decay: target + (current - target) * Math.exp(-decay * dt)
  • Both formulas produce the same result with different parameters
  • Speed/decay values from 1-25 work well
  • Frame-rate independent due to delta time usage

Usage

Related skills
Installs
12
GitHub Stars
29
First Seen
Jan 21, 2026