Tweening
Tweening (Inbetweening)
📖One-line summary
An animation technique that automatically computes the in-between frames from just a start value and an end value.
✨Example
트위닝
Tweening (Inbetweening)
⚡Vibe coding prompt examples
Build the hero section entrance animation with GSAP. Tween the heading from y 40px to 0 and opacity 0 to 1 over 0.8 seconds with power3.out, then have the subheading and button follow in order at 0.15-second intervals.
Write a dependency-free tween function in src/lib/tween.ts that takes a start value, end value, duration, and easing function and passes the in-between value to a callback every frame. Include linear, easeInOutCubic, and easeOutBack easings plus a way to cancel.
Explain how tweening differs from keyframe animation and spring animation, and lay out which one fits a button hover, opening a modal, and snapping back into place after a drag.
Try these prompts in your AI coding assistant!