Latest 0.0.2
Homepage https://github.com/caiobzen/CCAnimations
License MIT
Platforms ios 9.0, requires ARC
Authors

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! :+1:

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.

Latest podspec

{
    "name": "CCAnimations",
    "version": "0.0.2",
    "summary": "Custom CAAnimations",
    "description": "A set of custom CAAnimations.",
    "homepage": "https://github.com/caiobzen/CCAnimations",
    "license": "MIT",
    "authors": {
        "Carlos Correu0302a": "[email protected]"
    },
    "social_media_url": "http://twitter.com/caiobzen",
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/caiobzen/CCAnimations.git",
        "tag": "0.0.2"
    },
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This