Inherits from POPPropertyAnimation : POPAnimation : NSObject
Declared in POPDecayAnimation.h

Overview

Animation is achieved through gradual decay of animation value.

Tasks

Properties

deceleration

@property (assign, nonatomic) CGFloat deceleration
Discussion

Values specifies should be in the range [0, 1]. Lower values results in faster deceleration. Defaults to 0.998.

Declared In

POPDecayAnimation.h

duration

@property (readonly, assign, nonatomic) CFTimeInterval duration
Discussion

Derived based on input velocity and deceleration values.

Declared In

POPDecayAnimation.h

originalVelocity

@property (copy, nonatomic, readonly) id originalVelocity
Discussion

Since the velocity property is modified as the animation progresses, this property stores the original, passed in velocity to support autoreverse and repeatCount.

Declared In

POPDecayAnimation.h

velocity

@property (copy, nonatomic) id velocity
Discussion

Set before animation start to account for initial velocity. Expressed in change of value units per second. The only POPValueTypes supported for velocity are: kPOPValuePoint, kPOPValueInteger, kPOPValueFloat, kPOPValueRect, and kPOPValueSize.

Declared In

POPDecayAnimation.h

Class Methods

animation

The designated initializer.

+ (instancetype)animation

Return Value

An instance of a decay animation.

Declared In

POPDecayAnimation.h

animationWithPropertyNamed:

Convenience initializer that returns an animation with animatable property of name.

+ (instancetype)animationWithPropertyNamed:(NSString *)name

Parameters

name

The name of the animatable property.

Return Value

An instance of a decay animation configured with specified animatable property.

Declared In

POPDecayAnimation.h

Instance Methods

reversedVelocity

- (id)reversedVelocity
Discussion

The reversed velocity based on the originalVelocity when the animation was set up.

Declared In

POPDecayAnimation.h

setToValue:

- (void)setToValue:(id)toValue
Discussion

The to value is derived based on input velocity and deceleration.

Declared In

POPDecayAnimation.h