PRTween icon indicating copy to clipboard operation
PRTween copied to clipboard

Linear damping

Open chris838 opened this issue 10 years ago • 1 comments

I've been playing around with linear damping as an alternative to the elastic tween timing functions. I have some code that is able to better mimic (I think) the iOS UIView spring animation:

https://developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/uiview/uiview.html#//apple_ref/occ/clm/UIView/animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:

Currently it is not a really timing function since the duration parameter is ignored. If the duration could be incorporated then I think this would come very close to how Apple implements their function internally.

chris838 avatar May 06 '14 12:05 chris838

Included in https://github.com/PRTween/PRTween.

rivera-ernesto avatar Oct 22 '14 08:10 rivera-ernesto