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

Overview

Animation is achieved through modeling spring dynamics.

Tasks

Other Methods

POPAnimationExtras Methods

Properties

dynamicsFriction

@property (assign, nonatomic) CGFloat dynamicsFriction
Discussion

Can be used over bounciness and speed for finer grain tweaking of animation effect.

Declared In

POPSpringAnimation.h

dynamicsMass

@property (assign, nonatomic) CGFloat dynamicsMass
Discussion

Can be used over bounciness and speed for finer grain tweaking of animation effect.

Declared In

POPSpringAnimation.h

dynamicsTension

@property (assign, nonatomic) CGFloat dynamicsTension
Discussion

Can be used over bounciness and speed for finer grain tweaking of animation effect.

Declared In

POPSpringAnimation.h

springBounciness

@property (assign, nonatomic) CGFloat springBounciness
Discussion

Use in conjunction with ‘springSpeed’ to change animation effect. Values are converted into corresponding dynamics constants. Defined as a value in the range [0, 20]. Defaults to 4.

Declared In

POPSpringAnimation.h

springSpeed

@property (assign, nonatomic) CGFloat springSpeed
Discussion

Use in conjunction with ‘springBounciness’ to change animation effect. Values are converted into corresponding dynamics constants. Defined as a value in the range [0, 20]. Defaults to 12.

Declared In

POPSpringAnimation.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.

Declared In

POPSpringAnimation.h

Class Methods

animation

The designated initializer.

+ (instancetype)animation

Return Value

An instance of a spring animation.

Declared In

POPSpringAnimation.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 spring animation configured with specified animatable property.

Declared In

POPSpringAnimation.h

convertBounciness:speed:toTension:friction:mass:

Converts from spring bounciness and speed to tension, friction and mass dynamics values.

+ (void)convertBounciness:(CGFloat)bounciness speed:(CGFloat)speed toTension:(CGFloat *)outTension friction:(CGFloat *)outFriction mass:(CGFloat *)outMass

Declared In

POPAnimationExtras.h

convertTension:friction:toBounciness:speed:

Converts from dynamics tension, friction and mass to spring bounciness and speed values.

+ (void)convertTension:(CGFloat)tension friction:(CGFloat)friction toBounciness:(CGFloat *)outBounciness speed:(CGFloat *)outSpeed

Declared In

POPAnimationExtras.h