Svelte · Middle · Question 21 of 75

What is Tween / Spring in svelte/motion used for?

Explanation

Set .target and read .current, which moves toward the target with an easing or a spring.

Further reading

Problem with a question

Svelte · Middle · question 21

Test yourself

Take the Svelte · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz