123456789101112131415 |
- #import "VerticalTranslationTransition.h"
-
- @implementation VerticalTranslationTransition
-
- - (CATransform3D)animateWithProgress:(CGFloat)p {
- CGFloat y = [RNNInterpolator fromFloat:self.from + self.to toFloat:self.to precent:p interpolation:self.interpolation];
- return CATransform3DMakeTranslation(0, y - self.to, 0);
- }
-
- - (CGFloat)initialValue {
- return self.view.frame.origin.y;
- }
-
- @end
|