Timing in CAAnimation is incomplete #1097

Closed
lsinger opened this Issue Jan 18, 2011 · 10 comments

Comments

Projects
None yet
5 participants
Contributor

lsinger commented Jan 18, 2011

As of now, only linear timing is support -- as far as I can see (see https://github.com/280north/cappuccino/tree/master/AppKit/CoreAnimation). See http://iphonedevelopment.blogspot.com/2010/12/more-animation-curves-than-you-can.html for public domain implementations of some timing functions. These could be used in Cappuccino.

cappbot commented May 9, 2012

Label: #new. What's next? A reviewer should examine this issue.

Contributor

ahankinson commented Feb 9, 2013

This would be a handy feature. Currently CAAnimation setTimingFunction: is unimplemented (returns nil).

For reference, here are the ones supported by Cocoa. https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CAMediaTimingFunction_class/Introduction/Introduction.html#//apple_ref/doc/constant_group/Predefined_Timing_Functions

+feature
+#accepted
+#needs-patch

cappbot commented Feb 9, 2013

Labels: #accepted, #needs-patch, feature. What's next? This issue needs a volunteer to write and submit code to address it.

Contributor

cacaodev commented Feb 9, 2013

I've got it implemented in my to-be-submitted CPAnimationContext branch.

Contributor

ahankinson commented Feb 9, 2013

Great! When you submit it could you please reference this issue? Thanks.

cappbot commented Feb 17, 2013

Milestone: Someday. Labels: #accepted, #needs-patch, feature. What's next? This issue needs a volunteer to write and submit code to address it.

Contributor

ahankinson commented Apr 9, 2013

Hey @cacaodev, any progress on your CPAnimationContext branch?

Contributor

ahankinson commented Nov 21, 2014

ping @cacaodev

If you would like me to take your code and create a PR from it, please let me know.

Contributor

cacaodev commented Nov 23, 2014

The problem with my CPAnimationContext branch is that i am not completely happy with the API. I followed the cocoa way with an animator proxy but the way it's done in UIKit seems a lot more simple.
In cocoaTouch, there is no animator (you call directly the UIView) and the CPAnimationContext is completely hidden.
If the UIKit approach is chosen, it's not a lot of work. A lot of stuff is already here: CAAnimations & folks is done, the conversion from a CAAction to a CSS animation, the logic for converting capp properties to css properties, ...
If someone want to do the job I can give some thoughts but I don't think I will do it myself in the near future.
I can submit a PR for CAAnimation & folks if you want. It can't be used for visual animations currently but it may be a good thing to have it, and eventually write some tests.

Contributor

daboe01 commented May 24, 2016

@cacaodev can we close this one now?

@cacaodev cacaodev closed this May 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment