Skip to content

Commit

Permalink
ADD: swiftOut easing function (Google's Authentic Motion curve)
Browse files Browse the repository at this point in the history
  • Loading branch information
u10int committed May 21, 2016
1 parent 8c1caf7 commit dfa0abf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Example/Kinetic/BasicTweenViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BasicTweenViewController: ExampleViewController {
square.backgroundColor = UIColor.redColor()
view.addSubview(square)

let tween = Kinetic.animate(square).to(.X(250), .Height(100)).duration(0.5).ease(Easing.inOutQuart)
let tween = Kinetic.animate(square).to(.X(250), .Height(100)).duration(0.5).ease(Easing.swiftOut)
animation = tween
}

Expand Down
1 change: 1 addition & 0 deletions Pod/Classes/Easing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public struct Easing {
public static let inBack:Ease = Easing.cubicBezier(0.6, -0.28, 0.735, 0.045)
public static let outBack:Ease = Easing.cubicBezier(0.175, 0.885, 0.32, 1.275)
public static let inOutBack:Ease = Easing.cubicBezier(0.68, -0.55, 0.265, 1.55)
public static let swiftOut:Ease = Easing.cubicBezier(0.4, 0.0, 0.2, 1)
}

// MARK: - Unit Bezier
Expand Down

0 comments on commit dfa0abf

Please sign in to comment.