From Math Tool to GSAP Workflow
This is the math function in isolation. Move the slider to see how $t$ calculates the value between $A$ and $B$.
Using LERP recursively: pos = lerp(pos, target, 0.1). No clock, just a percentage of the remaining distance.
A "Tween" adds a clock. It manages $t$ from 0 to 1 over a fixed duration (1 second). It always resets to the start.
GSAP auto-captures current state. Click repeatedly to see it pivot mid-animation without jumping back to the start!