Class

CASpringAnimation

An animation that applies a spring-like force to a layer's properties.

Declaration

@interface CASpringAnimation : CABasicAnimation

Overview

You would typically use a spring animation to animate a layer's position so that it appears to be pulled towards a target by a spring. The further the layer is from the target, the greater the acceleration towards it is.

CASpringAnimation allows control over physically based attributes such as the spring's damping and stiffness.

Topics

Configuring Physical Attributes

damping

Defines how the spring’s motion should be damped due to the forces of friction.

initialVelocity

The initial velocity of the object attached to the spring.

mass

The mass of the object attached to the end of the spring.

settlingDuration

The estimated duration required for the spring system to be considered at rest.

stiffness

The spring stiffness coefficient.

Relationships

Inherits From

See Also

Animation

CAAnimation

The abstract superclass for animations in Core Animation.

CAAnimationDelegate

Methods your app can implement to respond when animations start and stop.

CAPropertyAnimation

An abstract subclass of CAAnimation for creating animations that manipulate the value of layer properties.

CABasicAnimation

An object that provides basic, single-keyframe animation capabilities for a layer property.

CAKeyframeAnimation

An object that provides keyframe animation capabilities for a layer object.

CATransition

An object that provides an animated transition between a layer's states.

CAValueFunction

An object that provides a flexible method of defining animated transformations.