learn.svelte.dev icon indicating copy to clipboard operation
learn.svelte.dev copied to clipboard

Motion/Tweens is unclear.

Open Clozent opened this issue 1 year ago • 0 comments

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.

  1. What is tweening, and what does a tweened() store actually do?
  2. What is a p => t function, and what do p and t stand for? Assuming p is for position and t is for time, shouldn't it be the opposite, with the function receiving a point in time and returning a position?
  3. What is value in (from, to) => t => value? Is it the value between from and to to display? Why not specify?

Clozent avatar Jul 28 '23 10:07 Clozent