- Chained grammar.
- No inheritance required.
- Lightweight expansion.
- Based on UIViewAnimation.
- No code intrusion.
CocoaPods - Podfile
source 'https://github.com/lixiang1994/Specs'
pod 'Spring'
Carthage - Cartfile
github "lixiang1994/Spring"
First make sure to import the framework:
import SpringAnimation
Here are some usage examples. All devices are also available as simulators:
animationView.spring
.opacity(0.1)
.scale(0.8, 0.8)
.duration(2)
.curve(.easeOutQuad)
.animate()
animate() { ... }
shake
pop
morph
squeeze
wobble
swing
flipX
flipY
fall
squeezeLeft
squeezeRight
squeezeDown
squeezeUp
slideLeft
slideRight
slideDown
slideUp
fadeIn
fadeOut
fadeInLeft
fadeInRight
fadeInDown
fadeInUp
zoomIn
zoomOut
flash
spring
linear
easeIn
easeOut
easeInOut
force
duration
delay
damping
velocity
repeatCount
scale
x
y
rotate
* Not all properties work together.
If you have the need for a specific feature that you want implemented or if you experienced a bug, please open an issue. If you extended the functionality of Spring yourself and want others to use it too, please submit a pull request.
Spring is under MIT license. See the LICENSE file for more info.