Latest 1.0.0
Homepage https://github.com/johngluszak/animated-ios-button
License MIT
Platforms ios 7.1, requires ARC
Authors

Animated Button

A ready-to-use Objective-C button with bounce and fade animations.

Install

If you use Cocoapods, add this line to your podfile:

pod 'AnimatedButton'

Usage

Bouncing Button

Bounce

ABAnimatedButton *button = [ABAnimatedButton buttonWithAnimationType:ABAnimationTypeBounce];
// Now customize the button appearance like a normal UIButton

Fading Button

Fade

ABAnimatedButton *button = [ABAnimatedButton buttonWithAnimationType:ABAnimationTypeFade];
button.tintColor = [UIColor ...]; // Set the fade animation color
// Now customize the button appearance like a normal UIButton
  • Note the fade color is set by the tintColor of the button.

Customizing

You can fully customize the behavior of the button animations by altering the ABAnimatedButton properties. These allow you to change:

  • Animation duration
  • Fade color
  • Bounce damping & velocity
  • Bounce scale

Contributing

Please open Github issues for bugs, questions, or feature requests.

License

This project is released under an MIT License. See LICENSE file for details.

Latest podspec

{
    "name": "AnimatedButton",
    "version": "1.0.0",
    "authors": {
        "John Gluszak": "[email protected]"
    },
    "summary": "A UIButton with bounce and fade animations",
    "homepage": "https://github.com/johngluszak/animated-ios-button",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "7.1"
    },
    "source": {
        "git": "https://github.com/johngluszak/animated-ios-button.git",
        "tag": "1.0.0"
    },
    "source_files": "**/*.{h,m}"
}

Pin It on Pinterest

Share This