Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onmyway133/wave
:ocean: Declarative chainable animations in Swift
https://github.com/onmyway133/wave
animation chain declarative ios swift
Last synced: about 2 months ago
JSON representation
:ocean: Declarative chainable animations in Swift
- Host: GitHub
- URL: https://github.com/onmyway133/wave
- Owner: onmyway133
- License: other
- Created: 2016-06-04T22:59:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T21:31:53.000Z (over 4 years ago)
- Last Synced: 2024-10-25T06:02:22.672Z (about 2 months ago)
- Topics: animation, chain, declarative, ios, swift
- Language: Swift
- Homepage:
- Size: 2.23 MB
- Stars: 128
- Watchers: 8
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Wave
Declarative chainable animations in Swift
❤️ Support my apps ❤️- [Push Hero - pure Swift native macOS application to test push notifications](https://onmyway133.com/pushhero)
- [PastePal - Pasteboard, note and shortcut manager](https://onmyway133.com/pastepal)
- [Quick Check - smart todo manager](https://onmyway133.com/quickcheck)
- [Alias - App and file shortcut manager](https://onmyway133.com/alias)
- [My other apps](https://onmyway133.com/apps/)❤️❤️😇😍🤘❤️❤️
[![CI Status](http://img.shields.io/travis/onmyway133/Wave.svg?style=flat)](https://travis-ci.org/onmyway133/Wave)
[![Version](https://img.shields.io/cocoapods/v/Wave.svg?style=flat)](http://cocoadocs.org/docsets/Wave)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/Wave.svg?style=flat)](http://cocoadocs.org/docsets/Wave)
[![Platform](https://img.shields.io/cocoapods/p/Wave.svg?style=flat)](http://cocoadocs.org/docsets/Wave)![](Screenshots/Banner.png)
## Features
- Declarative
- Run animations in sequence
- Run animations in parallel
- Support UIView and Core Animation animations
- Extensible
## Usage
```swift
view.run(.sequence([
.fadeIn(),
.fadeOut(),
.parallel([
.wait(0.5),
.squeeze()
.sequence([
.shake(),
.log("Has just been shaked")
.flipX()
]),
.morph()
])
]))
```## Installation
**Wave** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'Wave'
```**Wave** is also available through [Carthage](https://github.com/Carthage/Carthage).
To install just write into your Cartfile:```ruby
github "onmyway133/Wave"
```## Author
Khoa Pham, [email protected]
## Credit
- https://www.swiftbysundell.com/posts/building-a-declarative-animation-framework-in-swift-part-1
## Contributing
We would love you to contribute to **Wave**, check the [CONTRIBUTING](https://github.com/onmyway133/Wave/blob/master/CONTRIBUTING.md) file for more info.
## License
**Wave** is available under the MIT license. See the [LICENSE](https://github.com/onmyway133/Wave/blob/master/LICENSE.md) file for more info.