Ease
public struct Ease
A type of easing function, described from an algorithmic classification and acceleration pattern, providing the sense of motion.
“Nothing in nature moves linearly from one point to another. In reality, things tend to accelerate or decelerate as they move. Our brains are wired to expect this kind of motion, so when animating you should use this to your advantage. Natural motion makes your users feel more comfortable with your apps, which in turn leads to a better overall experience.” - Paul Lewis
-
The algorithmic classification of the ease.
Declaration
Swift
public let classification: EaseClassification -
The acceleration pattern of the ease.
Declaration
Swift
public let curve: EaseCurve -
The timing function, f(x), of the ease.
Declaration
Swift
public let function: (Double) -> Double
-
An ease with a
linearclassification.Declaration
Swift
public static let linear: Ease
-
An ease with a
sineclassification andinacceleration pattern.Declaration
Swift
public static let sineIn: Ease -
An ease with a
sineclassification andoutacceleration pattern.Declaration
Swift
public static let sineOut: Ease -
An ease with a
sineclassification andinOutacceleration pattern.Declaration
Swift
public static let sineInOut: Ease
-
An ease with a
cubicclassification andinacceleration pattern.Declaration
Swift
public static let cubicIn: Ease -
An ease with a
cubicclassification andoutacceleration pattern.Declaration
Swift
public static let cubicOut: Ease -
An ease with a
cubicclassification andinOutacceleration pattern.Declaration
Swift
public static let cubicInOut: Ease
-
An ease with a
quadclassification andinacceleration pattern.Declaration
Swift
public static let quadIn: Ease -
An ease with a
quadclassification andoutacceleration pattern.Declaration
Swift
public static let quadOut: Ease -
An ease with a
quadclassification andinOutacceleration pattern.Declaration
Swift
public static let quadInOut: Ease
-
An ease with a
quartclassification andinacceleration pattern.Declaration
Swift
public static let quartIn: Ease -
An ease with a
quartclassification andoutacceleration pattern.Declaration
Swift
public static let quartOut: Ease -
An ease with a
quartclassification andinOutacceleration pattern.Declaration
Swift
public static let quartInOut: Ease
-
An ease with a
quintclassification andinacceleration pattern.Declaration
Swift
public static let quintIn: Ease -
An ease with a
quintclassification andoutacceleration pattern.Declaration
Swift
public static let quintOut: Ease -
An ease with a
quintclassification andinOutacceleration pattern.Declaration
Swift
public static let quintInOut: Ease
-
An ease with an
expoclassification andinacceleration pattern.Declaration
Swift
public static let expoIn: Ease -
An ease with an
expoclassification andoutacceleration pattern.Declaration
Swift
public static let expoOut: Ease -
An ease with an
expoclassification andinOutacceleration pattern.Declaration
Swift
public static let expoInOut: Ease
-
An ease with a
circclassification andinacceleration pattern.Declaration
Swift
public static let circIn: Ease -
An ease with a
circclassification andoutacceleration pattern.Declaration
Swift
public static let circOut: Ease -
An ease with a
circclassification andinOutacceleration pattern.Declaration
Swift
public static let circInOut: Ease
-
An ease with a
backclassification andinacceleration pattern.Declaration
Swift
public static let backIn: Ease -
An ease with a
backclassification andoutacceleration pattern.Declaration
Swift
public static let backOut: Ease -
An ease with a
backclassification andinOutacceleration pattern.Declaration
Swift
public static let backInOut: Ease
-
An ease with an
elasticclassification andinacceleration pattern.Declaration
Swift
public static let elasticIn: Ease -
An ease with an
elasticclassification andoutacceleration pattern.Declaration
Swift
public static let elasticOut: Ease -
An ease with an
elasticclassification andinOutacceleration pattern.Declaration
Swift
public static let elasticInOut: Ease
-
An ease with a
bounceclassification andinacceleration pattern.Declaration
Swift
public static let bounceIn: Ease -
An ease with a
bounceclassification andoutacceleration pattern.Declaration
Swift
public static let bounceOut: Ease -
An ease with a
bounceclassification andinOutacceleration pattern.Declaration
Swift
public static let bounceInOut: Ease
-
An ease with a custom timing function.
Declaration
Swift
public static func custom(function: @escaping (Double) -> Double) -> EaseParameters
functionThe custom timing function of the ease.
Return Value
The custom ease.
View on GitHub
Ease Structure Reference