learn.svelte.dev
learn.svelte.dev copied to clipboard
Motion/Tweens is unclear.
I'm referring to the document at this path: content/tutorial/02-advanced-svelte/01-motion/01-tweens The same document on the website: https://learn.svelte.dev/tutorial/tweens
This page is very unclear, to me at least.
- What is tweening, and what does a
tweened()
store actually do? - What is a
p => t
function, and what dop
andt
stand for? Assumingp
is for position andt
is for time, shouldn't it be the opposite, with the function receiving a point in time and returning a position? - What is
value
in(from, to) => t => value
? Is it the value betweenfrom
andto
to display? Why not specify?