Skip to content

caiobzen/CCAnimations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCAnimations

Version License Platform

CCAnimations is a simple set of custom CAAnimations, handcrafted by me. I love to add animations in my apps, and everytime that I want to do that, I had to search through my apps for sample animation codes. Not anymore! Now I will focus on adding new animations as needed. Feel free to contribute with your own animations and feedbacks! 👍


## Installation 💻

####CocoaPods You can Install CCAnimations through CocoaPods. In order to do this, add the following line to your Podfile:

pod "CCAnimations"


####Manually Simply clone the repository (or even download it) and add the file named CCAnimations.swift into your XCode project.



Usage

In order to use any of those animations, you just need to pick an UIView object and call a CCAnimation as the following example:

myImgView.CCAnimationPop()
myLabel.CCAnimationRotate()

You can also specify some parameters, in order to create even more customizable animations:

myImgView.CCAnimationJump(intensity: 50)
myImgView.CCAnimationPop(0.9) // This will shrink the view, instead of making it bigger.

You can also mix animations, like the CCAnimationJumpTwistX that does both jump and 3DxRotation

For now, there are 12 custom animations:

▶️ CCAnimationPop()

Demo


##### ▶️ CCAnimationShake()

Demo


##### ▶️ CCAnimationRotate()

Demo


##### ▶️ CCAnimation3DxRotation()

Demo


##### ▶️ CCAnimation3DyRotation()

Demo


##### ▶️ CCAnimationJump()

Demo


##### ▶️ CCAnimationFadeUp()

Demo


##### ▶️ CCAnimationFadeDown()

Demo


##### ▶️ CCAnimationFadeToLeft()

Demo


##### ▶️ CCAnimationFadeToRight()

Demo


##### ▶️ CCAnimationJumpTwistY()

Demo


##### ▶️ CCAnimationJumpTwistX()

Demo

📜 License

CCAnimations is available under the MIT license. Please read the LICENSE file for more info if needed.

About

This is a set of custom CAAnimations

Resources

License

Stars

Watchers

Forks

Packages

No packages published