Reference Animate.CSS CSShake Magic.CSS
#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"];
You shouldn't just use: pod "YTXAnimations". Since CocoaPods 0.36+ you should do something like:
pod 'YTXAnimations', :subspecs => ["AnimateCSS", "CSShake", "MagicCSS"]
YTXAnimations is available under the MIT license. See the LICENSE file for more info.
- ytx_jelloAnimationWithDurationTime:
- ytx_wobbleAnimationWithDurationTime:
- ytx_swingAnimationWithDurationTime:
- ytx_rubberBandAnimationWithDurationTime:
- ytx_pulseAnimationWithDurationTime:
- ytx_flashAnimationWithDurationTime:
- ytx_bounceAnimationWithDurationTime:
- ytx_tadaAnimationWithDurationTime:
- ytx_shakeAnimationWithDurationTime:
- ytx_bounceInAnimationWithDurationTime:
- ytx_bounceInDownAnimationWithDurationTime:
- ytx_bounceInLeftAnimationWithDurationTime:
- ytx_bounceInRightAnimationWithDurationTime:
- ytx_bounceInUpAnimationWithDurationTime:
- ytx_bounceOutAnimationWithDurationTime:
- ytx_bounceOutDownAnimationWithDurationTime:
- ytx_bounceOutLeftAnimationWithDurationTime:
- ytx_bounceOutRightAnimationWithDurationTime:
- ytx_bounceOutUpAnimationWithDurationTime:
- ytx_fadeInAnimationWithDurationTime:
- ytx_fadeInDownAnimationWithDurationTime:
- ytx_fadeInDownBigAnimationWithDurationTime:
- ytx_fadeInLeftAnimationWithDurationTime:
- ytx_fadeInLeftBigAnimationWithDurationTime:
- ytx_fadeInRightAnimationWithDurationTime:
- ytx_fadeInRightBigAnimationWithDurationTime:
- ytx_fadeInUpAnimationWithDurationTime:
- ytx_fadeInUpBigAnimationWithDurationTime:
- ytx_fadeOutAnimationWithDurationTime:
- ytx_fadeOutDownAnimationWithDurationTime:
- ytx_fadeOutDownBigAnimationWithDurationTime:
- ytx_fadeOutLeftAnimationWithDurationTime:
- ytx_fadeOutLeftBigAnimationWithDurationTime:
- ytx_fadeOutRightAnimationWithDurationTime:
- ytx_fadeOutRightBigAnimationWithDurationTime:
- ytx_fadeOutUpAnimationWithDurationTime:
- ytx_fadeOutUpBigAnimationWithDurationTime:
- ytx_zoomOutAnimationWithDurationTime:
- ytx_zoomOutDownAnimationWithDurationTime:
- ytx_zoomOutLeftAnimationWithDurationTime:
- ytx_zoomOutRightAnimationWithDurationTime:
- ytx_zoomOutUpAnimationWithDurationTime:
- ytx_flipAnimationWithDurationTime:
- ytx_flipInXAnimationWithDurationTime:
- ytx_flipInYAnimationWithDurationTime:
- ytx_flipOutXAnimationWithDurationTime:
- ytx_flipOutYAnimationWithDurationTime:
- ytx_lightSpeedInAnimationWithDurationTime:
- ytx_lightSpeedOutAnimationWithDurationTime:
- ytx_hingeAnimationWithDurationTime:
- ytx_rollInAnimationWithDurationTime:
- ytx_rollOutAnimationWithDurationTime:
- ytx_zoomInAnimationWithDurationTime:
- ytx_zoomInLeftAnimationWithDurationTime:
- ytx_zoomInRightAnimationWithDurationTime:
- ytx_zoomInDownAnimationWithDurationTime:
- ytx_zoomInUpAnimationWithDurationTime:
- ytx_slideOutDownAnimationWithDurationTime:
- ytx_slideOutLeftAnimationWithDurationTime:
- ytx_slideOutRightAnimationWithDurationTime:
- ytx_slideOutUpAnimationWithDurationTime:
- ytx_slideInDownAnimationWithDurationTime:
- ytx_slideInLeftAnimationWithDurationTime:
- ytx_slideInRightAnimationWithDurationTime:
- ytx_slideInUpAnimationWithDurationTime:
- ytx_rotateInDownLeftAnimationWithDurationTime:
- ytx_rotateInAnimationWithDurationTime:
- ytx_rotateInDownRightAnimationWithDurationTime:
- ytx_rotateInUpRightAnimationWithDurationTime:
- ytx_rotateInUpLeftAnimationWithDurationTime:
- ytx_rotateOutDownLeftAnimationWithDurationTime:
- ytx_rotateOutAnimationWithDurationTime:
- ytx_rotateOutDownRightAnimationWithDurationTime:
- ytx_rotateOutUpRightAnimationWithDurationTime:
- ytx_rotateOutUpLeftAnimationWithDurationTime:
- ytx_basicShakeAnimation
- ytx_littleShakeAnimation
- ytx_slowShakeAnimation
- ytx_hardShakeAnimation
- ytx_horizontalShakeAnimation
- ytx_verticalShakeAnimation
- ytx_rotateShakeAnimation
- ytx_opacityShakeAnimation
- ytx_crazyShakeAnimation
- ytx_magicAnimationWithDurationTime:
- ytx_twisterInDownAnimationWithDurationTime:
- ytx_twisterInUpAnimationWithDurationTime:
- ytx_swapAnimationWithDurationTime:
- ytx_openDownLeftAnimationWithDurationTime:
- ytx_openDownRightAnimationWithDurationTime:
- ytx_openUpLeftAnimationWithDurationTime:
- ytx_openUpRightAnimationWithDurationTime:
- ytx_openDownLeftRetournAnimationWithDurationTime:
- ytx_openDownRightRetournAnimationWithDurationTime:
- ytx_openUpLeftRetournAnimationWithDurationTime:
- ytx_openUpRightRetournAnimationWithDurationTime:
- ytx_openDownLeftOutAnimationWithDurationTime:
- ytx_openDownRightOutAnimationWithDurationTime:
- ytx_openUpLeftOutAnimationWithDurationTime:
- ytx_openUpRightOutAnimationWithDurationTime:
- ytx_perspectiveDownAnimationWithDurationTime:
- ytx_perspectiveUpAnimationWithDurationTime:
- ytx_perspectiveLeftAnimationWithDurationTime:
- ytx_perspectiveRightAnimationWithDurationTime:
- ytx_perspectiveUpRetournAnimationWithDurationTime:
- ytx_perspectiveDownRetournAnimationWithDurationTime:
- ytx_perspectiveLeftRetournAnimationWithDurationTime:
- ytx_perspectiveRightRetournAnimationWithDurationTime:
- ytx_rotateDownAnimationWithDurationTime:
- ytx_rotateUpAnimationWithDurationTime:
- ytx_rotateLeftAnimationWithDurationTime:
- ytx_rotateRightAnimationWithDurationTime:
- ytx_slideDownAnimationWithDurationTime:
- ytx_slideLeftAnimationWithDurationTime:
- ytx_slideRightAnimationWithDurationTime:
- ytx_slideUpAnimationWithDurationTime:
- ytx_slideDownRetournAnimationWithDurationTime:
- ytx_slideLeftRetournAnimationWithDurationTime:
- ytx_slideRightRetournAnimationWithDurationTime:
- ytx_slideUpRetournAnimationWithDurationTime:
- ytx_swashOutAnimationWithDurationTime:
- ytx_swashInAnimationWithDurationTime:
- ytx_foolishOutAnimationWithDurationTime:
- ytx_foolishInAnimationWithDurationTime:
- ytx_holeOutAnimationWithDurationTime:
- ytx_tinDownInAnimationWithDurationTime:
- ytx_tinLeftInAnimationWithDurationTime:
- ytx_tinRightInAnimationWithDurationTime:
- ytx_tinUpInAnimationWithDurationTime:
- ytx_tinDownOutAnimationWithDurationTime:
- ytx_tinLeftOutAnimationWithDurationTime:
- ytx_tinRightOutAnimationWithDurationTime:
- ytx_tinUpOutAnimationWithDurationTime:
- ytx_boingInUpAnimationWithDurationTime:
- ytx_boingOutDownAnimationWithDurationTime:
- ytx_spaceOutUpAnimationWithDurationTime:
- ytx_spaceOutRightAnimationWithDurationTime:
- ytx_spaceOutDownAnimationWithDurationTime:
- ytx_spaceOutLeftAnimationWithDurationTime:
- ytx_spaceInUpAnimationWithDurationTime:
- ytx_spaceInRightAnimationWithDurationTime:
- ytx_spaceInDownAnimationWithDurationTime:
- ytx_spaceInLeftAnimationWithDurationTime: