Coder Social home page Coder Social logo

krait-yxin / aggeometrykit-pop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agens-no/aggeometrykit-pop

0.0 1.0 0.0 10.81 MB

Bridging AGGeometryKit with POP for amazing dynamics and animations.

License: Other

Ruby 0.25% Objective-C 55.19% C 3.53% Shell 0.87% C++ 18.62% Objective-C++ 21.55%

aggeometrykit-pop's Introduction

AGGeometryKit

Bridging AGGeometryKit with POP for amazing dynamics and animations.

See this interesting video about animation principles by Cento Lodigiani. If you like what you see and want to mimic step #1 and #5 - then this kit is here to help you.

Demo video

Installation

New-school: Use the cocoa pod named AGGeometryKit+POP.
Old-school: Grab the files found in Source.

Demo

Demo video
See the video on vimeo

Technology

It does not rely on snapshotting view hierarchy at all. Whenever you update the property quadrilateral (defined in AGGeometryKit) on the CALayer you are actually just applying a new CATransform3D. This can be done on any view whether it is an interactive UIWebView or just a plain UIImageView. This is totally cost-free! :)

Interface

Animate each corner independently using these new POPAnimatableProperty's.

extern NSString * const kPOPLayerAGKQuadTopLeft;
extern NSString * const kPOPLayerAGKQuadTopLeftX;
extern NSString * const kPOPLayerAGKQuadTopLeftY;

extern NSString * const kPOPLayerAGKQuadTopRight;
extern NSString * const kPOPLayerAGKQuadTopRightX;
extern NSString * const kPOPLayerAGKQuadTopRightY;

extern NSString * const kPOPLayerAGKQuadBottomLeft;
extern NSString * const kPOPLayerAGKQuadBottomLeftX;
extern NSString * const kPOPLayerAGKQuadBottomLeftY;

extern NSString * const kPOPLayerAGKQuadBottomRight;
extern NSString * const kPOPLayerAGKQuadBottomRightX;
extern NSString * const kPOPLayerAGKQuadBottomRightY;

@interface POPAnimatableProperty (AGK_POP)

+ (instancetype)AGKPropertyWithName:(NSString *)aName;

@end

Keywords

Convex quadrilateral, simple quadrilateral, tangential, kite, rhombus, square, trapezium, trapezoid, parallelogram, bicentric, cyclic, POP, facebook, animation, dynamics, simulation

Debugging

Please see the Debugging section over at the AGGeometryKit repo.

Contact

You can reach me on twitter as @hfossli.

Who's behind this?

Agens.no a company situated in Oslo, Norway, with some help from some very clever stackoverflow.com guys.

Agens | Digital craftsmanship

aggeometrykit-pop's People

Contributors

hfossli avatar ilmy avatar yehuanwen 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.