matthewcheok / POP-MCAnimate

Concise syntax for the Pop animation framework.
MIT License
947 stars 105 forks source link

fromValue support #5

Closed jlab13 closed 10 years ago

jlab13 commented 10 years ago

Is base POP lib is work fromValue :

POPBasicAnimation *anim = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerScaleX];
anim.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
anim.duration = 1;
anim.fromValue  = @(0.0f);
anim.toValue  = @(1.0f);
[imgView.layer pop_addAnimation:anim forKey:@"scale"];

I think fromValue is not supported at the moment?

matthewcheok commented 10 years ago

Yes fromValue is not currently supported. This category is mainly built to make commonly used animations really simple. You can still use the above code even after including POP+MCAnimate.