Svelte · Middle · Question 21 of 75
What is Tween / Spring in svelte/motion used for?
- ✓Correct answer: Smoothly animating numeric values over time, e.g. a progress bar or a counter
- 2Animating page transitions in SvelteKit
- 3CSS keyframes generation
Explanation
Set .target and read .current, which moves toward the target with an easing or a spring.