Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
Added timeline visualizations
  • Loading branch information
modzelewski committed Aug 22, 2016
1 parent aa2c4dc commit 07ef4c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ Use a Timeline to chain Tweens or even other timelines
TimeLine(tweens: [
1.trxTo(20) { object.value = $0 },
30.trxTo(40) { object.value = $0 },
40.trxTo(50) { object.value = $0 },
]).start()
```
![Timeline](https://trxy.github.io/TRX/docs/timeline.png)

Add tween with an overlap

Expand All @@ -89,6 +91,7 @@ timeline.add(1.trxTo(20) { object.value = $0 })
timeline.add(30.trxTo(40) { anOtherObject.value = $0 }, shift: -0.5)
timeline.start()
```
![Timeline with an overlap](https://trxy.github.io/TRX/docs/timeline_overlap.png)

Squeeze and stretch tweens or timelines

Expand Down Expand Up @@ -140,9 +143,9 @@ github "Trxy/TRX"

### Swift Package Manager (Experimental)
Specify a dependency in [Package.swift](https://swift.org/package-manager/)
```swift
```
...
.Package(url: "https://github.com/Trxy/TRX.git", majorVersion: 0, minor: 2),
.Package(url: "https://github.com/Trxy/TRX.git", majorVersion: 0, minor: 3),
...
```

Expand Down

0 comments on commit 07ef4c8

Please sign in to comment.