facebookarchive / pop

An extensible iOS and OS X animation library, useful for physics-based interactions.
Other
19.66k stars 2.88k forks source link

Set animation fraction/progress #331

Closed zdnk closed 8 years ago

zdnk commented 8 years ago

Is it possible to create an animation and manually set its progress?

Just like in new animation API in iOS 10.

grp commented 8 years ago

Generally, you wouldn't need Pop to set a property to a specific progress, since you could just set the property directly. For example, to fade in a view, just set view.alpha = progress;. If you want to adjust the property every frame, POPCustomAnimation (a wrapper over CADisplayLink) might be useful.