Coder Social home page Coder Social logo

codwam / animate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeeagle/animate

0.0 1.0 0.0 356 KB

Convenience tool for the Pop animation framework written in Swift

License: MIT License

Ruby 0.30% Swift 17.79% Objective-C 29.43% Shell 2.44% Objective-C++ 35.15% C++ 14.89%

animate's Introduction

Animate

Convenience tool for the Pop animation framework written in Swift

Version License Platform

##Screenshot

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

import Animate

var view:UIView! = UIView(frame: CGRectMake(10, 10, 50, 50))
view.backgroundColor = UIColor.orangeColor()
self.view.addSubview(view)
view.basic { (make) -> Void in
                make.backgroundColor = UIColor.grayColor()
                make.center = CGPointMake(200, 200)
            }.delay(1)
            .spring({ (make) -> Void in
                make.backgroundColor = UIColor.orangeColor()
                make.center = CGPointMake(200, 300)
            }).delay(1)
            .decay({ (make) -> Void in
                make.velocity(NSValue(CGPoint:CGPointMake(150, 150)),forProperty:kPOPViewCenter)
                make.velocity(NSValue(CGRect:CGRectMake(0, 0, 200, 200)),forProperty:kPOPViewBounds)
            }).delay(1)
            .done { () -> Void in
                view.removeFromSuperview()
                view = nil
            }
            

//or

view.spring.frame =  CGRectMake(0, 0, 200, 200)

Requirements

iOS 8.0 or later

Installation

Animate is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Animate"

Todo Next

  • UIView Support
  • CALayer Support
  • CAShapeLayer Support
  • NSLayoutConstraint Support
  • UIScrollView Support
  • UITableView Support
  • UICollectionView Support
  • UINavigationBar Support
  • UIToolbar Support
  • UITabBar Support
  • UILabel Support

Author

CodeEagle, [email protected]

License

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

animate's People

Contributors

codeeagle avatar codwam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.