mdsb100 / YTXAnimations

The iOS Animation Implementation of CSS3.
MIT License
223 stars 30 forks source link

YTXAnimations

CI Status Version License Platform

Reference Animate.CSS CSShake Magic.CSS

YTXAnimateCSS YTXCSShake YTXMagicCSS

Usage

#import <YTXAnimations/UIView+YTXAnimateCSS.h>
#import <YTXAnimations/UIView+YTXCSShake.h>
#import <YTXAnimations/UIView+YTXMagicCSS.h>

CAAnimation * tada = [view ytx_tadaAnimationWithDurationTime:1];
tada.repeatCount = CGFLOAT_MAX;

[view ytx_basicShakeAnimation];
//removeAnimationForKey the key is function name. Please pay attention to colon!!! "ytx_tadaAnimationWithDurationTime:"
[view.layer removeAnimationForKey:@"ytx_tadaAnimationWithDurationTime:"];

// No colon
[view.layer removeAnimationForKey:@"ytx_basicShakeAnimation"];

Integration

You shouldn't just use: pod "YTXAnimations". Since CocoaPods 0.36+ you should do something like:

pod 'YTXAnimations', :subspecs => ["AnimateCSS", "CSShake", "MagicCSS"]

License

YTXAnimations is available under the MIT license. See the LICENSE file for more info.

If you use YTXAnimations in one of your apps, I'd love to hear about it.

List of Animate.CSS

Attention Seekers

Bouncing Entrances

Bouncing Exits

Fading Entrances

Fading Exits

Zoom Exits

Flippers

LightSpeed

Special

Zoom Entrances

Slide Exits

Slide Entrances

Rotating Entrances

Rotating Exits

List of CSShake

List of Magic.CSS

Magic Effects

Static Effects

Static Effects Out

Perspective Effects

Rotate

Slide

Math

Tin

Boing

On The Space