SEssentialsAnimationCurve Class Reference

Inherits from NSObject
Declared in SEssentialsAnimationCurve.h
Availability
Related samples

Overview

A class that provides a variety of curves for use with SEssentialCarousel.

Class Methods

curveForCurveType:

  • Creates an animation curve from the enum
+ (id)curveForCurveType:(SEssentialsAnimationCurveType)curveType

Discussion

typedef enum {
   SEssentialsAnimationCurveTypeLinear,
   SEssentialsAnimationCurveTypeEaseIn,
   SEssentialsAnimationCurveTypeEaseOut,
   SEssentialsAnimationCurveTypeEaseInOut,
   SEssentialsAnimationCurveTypeBounce,
   SEssentialsAnimationCurveTypeWobbleLight,
   SEssentialsAnimationCurveTypeWobbleHeavy
} SEssentialsAnimationCurveType;

Declared In

SEssentialsAnimationCurve.h

Instance Methods

valueAtPercentTime:

All curves implement this method

- (CGFloat)valueAtPercentTime:(CGFloat)percentTime

Parameters

percentTime

The proportion of the duration of the curve completed.

Return Value

Value of the curve at specified time. Must be 0 at time 0 and 1 at time 1.

Declared In

SEssentialsAnimationCurve.h