-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
Expectations
With a param named velocity, I would expect that it would default to 1 and that increasing the number to 2 would double the animation speed — in other words, I expect velocity to scale with frequency and to scale inversely with the period.
Reality
Bigger numbers make it go slower, and the default is 1.05.
Steps to Reproduce
Try it
Suggestions
Either:
- Change the math so that
velocityis a multiple of the baseline speed, with a default of1, where0would stop animation and2would be twice as fast; or - Rename the variable. Since positive numbers slow the animation speed, negative numbers speed it up, and
0has no effect, perhapsslowdownis a good name; or - Just expose the cycle
perioddirectly, allowing consumers to set the time a full animation cycle takes to complete; or - Remove this parameter and determine speed automatically based on the rendered size (as I understand to be the intended purpose). This option removes freedom but increases consistency.
I tend to think the first, third, and fourth options are the best as they involve the least guesswork and the most intuitive interface
Fine Print
- Component: loaders/dots
- Browsers: all
Metadata
Metadata
Assignees
Labels
No labels