@ssgoi/core v3.4.0
New Features
Double Spring for Ease-in-out Animation (#250)
Added doubleSpring option to SpringConfig for natural S-curve (ease-in-out) animations.
How it works:
target ← [Leader Spring] ← [Follower Spring] → output
- t=0: Leader starts moving, follower lags behind → ease-in
- t=mid: Both moving at speed
- t=end: Leader settles first, follower catches up → ease-out
Usage:
// Basic ease-in-out
{ stiffness: 180, damping: 22, doubleSpring: true }
// Stronger ease-in (follower has half stiffness)
{ stiffness: 180, damping: 22, doubleSpring: 0.5 }Improvements
Mobile Animation Easing (#248)
- Changed keyframe easing from
lineartoease-infor smoother animation start - Tuned drill transition spring stiffness values for better mobile feel