Git Product home page Git Product logo

popplayground's Introduction

PopPlayground

Examples and Controls made entirely using Pop new Facebook's animation framework

This project includes 3 different tabs:

  • Basic concepts: comparison between iOS animations and new Pop's animations.
  • Examples: Some examples animating many different properties using Pop
  • Controls: two UIControls made entirely using Pop. The controls are unfinished (no callback functions, completion blocks, etc.), just animations

Video

This code is the project shown in the following video. Please check it out here

popplayground's People

Contributors

victorbaro avatar alexito4 avatar boyvanamstel avatar

Stargazers

Thiago Butignon Claramunt avatar Erbash avatar Mac Gallagher avatar JarvenSun avatar Peter avatar Huy Bui avatar Shahzeb K. avatar Jonatan Witoszek avatar  avatar  avatar  avatar Sami avatar SilentCrazy avatar  avatar Jaemin Seo avatar Yoon Dombo avatar Henry H Miao avatar  avatar Cristian Gómez avatar Franz avatar Chonnawee Chatcherthaicharoen avatar Graisorn Soisakhoo avatar lchence avatar K's avatar Tralafalgar Wang avatar Jonathan Ragan-Kelley avatar Adi Nugroho avatar Phillip avatar Cantoraz Chou avatar  avatar rerezczc avatar 七 avatar liuchendi avatar Alberto Lagos T. avatar Jonathan avatar Diego F Aguirre avatar Jing Lu avatar Domenico Solazzo avatar MartinRGB avatar  avatar Ryan avatar  avatar Zhibin avatar Erison Veshi avatar Jack Yin avatar Kyle Howells avatar Marcos Curvello avatar 标 avatar omar avatar Zach avatar Hemant Torsekar avatar matiaz avatar Oliviertoto avatar Sergey avatar  avatar lwang avatar Dev Sa avatar  avatar Ruben Roques avatar juliengdt avatar Angus H. avatar  avatar  avatar  avatar Kazuya Nomura avatar  avatar Joshua Pekera avatar wuyd avatar Wangqin Long avatar  avatar Sergey avatar Sergey Vorontsov avatar Alexander Cohen avatar  avatar Anton Matosov avatar Henry S avatar  avatar Niclas avatar Kai Jin avatar Chun Ye avatar Mykola Blyk avatar Patrick Reynolds avatar Luke Newman avatar  avatar Shai Shamir avatar Noot avatar Owais Tauqir avatar HS Lee avatar S. Suzuki avatar Indrajit Chakrabarty avatar  avatar Junne avatar Travis Werbelow avatar Kostas Chartomatzis avatar Monkey Jin avatar Aufree avatar Gabriel Santos avatar Santiago Ochoa Bernaldo de Quirós avatar Summer avatar 南知 avatar

Watchers

Imran Ansari avatar ong vairoj avatar Graisorn Soisakhoo avatar Jonathan Lott avatar  avatar Adam Gammell avatar Michael WU avatar Stephen Whitifeld avatar Andrew Carvajal avatar Muhannad Alnemer avatar  avatar

popplayground's Issues

Build error

Hi @ibaro,

I tried to run your project and learn facebook pop animation from it, but I got some errors. I am actually using xcode 6.1. And the project won't run.

Second for the device can you support also the iphone 4. Because now I see only the ipads simulerator when trying to run the project.

Thanks

Can't compile

Shows:

/PopPlayground-master/PopPlayground/ViewController.m:46:41: No known class method for selector 'flatRandomColor'

custom segue performs multiple times

I know here is a place to fire issues.
But I don't know where to ask questions, so I put it here.

I rewote custom segue in swift

override func perform() {
    let sourceViewController = self.sourceViewController as! ViewController
    let destinationViewController = self.destinationViewController as! ImageSlideShowViewController

    let layer = destinationViewController.view.layer
    layer.pop_removeAllAnimations()

    NSLog("Layer frame X: %f", layer.frame.origin.x);
    NSLog("Layer frame width: %f", layer.frame.size.width);

    let xAnim = POPSpringAnimation(propertyNamed: kPOPLayerPositionX)
    let sizeAnim = POPSpringAnimation(propertyNamed: kPOPLayerSize)

    xAnim.fromValue = 320
    xAnim.springBounciness = 16
    xAnim.springSpeed = 10

    // About 20% of it's normal size
    sizeAnim.fromValue = NSValue(CGSize: CGSizeMake(64, 114))

    xAnim.completionBlock = { (_, _) in
        NSLog("Animation has completed.");
        NSLog("Layer frame X: %f", layer.frame.origin.x);
    };

    layer.pop_addAnimation(xAnim, forKey:"position")
    layer.pop_addAnimation(sizeAnim, forKey:"size")

    sourceViewController.navigationController?.pushViewController(destinationViewController, animated:false)

}

but when I click the cell, perform executes 3 times.
can not reproduce in the original objectivec project.

could you help me?

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.