Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Spring Animation example #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ralfebert
Copy link

  • Continuously animate between two states (left and right) using layout constraints to avoid the jumpiness of resetting the position
  • Removing terms bounciness and speed (I like these terms, but they can be confusing because their ranges are opposite: low damping = high bounciness, short response = high speed)
  • Make value labels more clear by adding units (50% damping, 1s response instead of 0.5 and 1.0)

@ralfebert ralfebert force-pushed the master branch 2 times, most recently from a8a9679 to 9cc4420 Compare August 9, 2018 07:57
* Continuously animate between two states (left and right) using layout constraints to avoid the jumpiness of resetting the position
* Removing terms bounciness and speed (these are confusing because their ranges are opposite: low damping = high bounciness, short response = high speed)
* Make value labels more clear by adding units (50% damping, 1s response instead of 0.5 and 1.0)
@nathangitter
Copy link
Owner

I like these changes. Feels smoother and friendlier.

Not sure about removing the "bounciness" and "speed" labels, although I agree the opposite ranges are confusing. I need to give it some more thought.

(Also, this code is outputting constraint errors when I run it on an iPhone X. I'm running Xcode 10 and iOS 12.)

@ralfebert
Copy link
Author

Layout warning should be fixed now.

Hmm, about the labels, one way to have them without being misleading would be adding an explicit explanation like "low damping = high bounciness".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants