Code Monkey home page Code Monkey logo

Comments (5)

kimon avatar kimon commented on September 17, 2024

We decided not to support animating transforms for Pop 1.0. There are a number of issues, especially surrounding rotation, that make this property a less than ideal animatable property target. What effect are you trying to accomplish? Do the rotation/scale collection of properties not suffice?

from pop.

kyle-rosenbluth avatar kyle-rosenbluth commented on September 17, 2024

I am animating a series of cards to scroll across the screen, and was adding some xz and yz rotation to the cards, achieving a sort of 3dimensional carousel effect. Previously I was animating them with a block-based UIVIew animation. Perhaps if there is some way to determine the length (time) of a pop animation, I can do my transform animations in a block-based animation and sync them up with the pop animation. Is this possible? Thanks,

from pop.

grp avatar grp commented on September 17, 2024

If you use the kPOPLayerRotationX and kPOPLayerRotationY, you can apply the same animations with Pop. You will need to make three animations — one for the position across the screen, then one for each of the X and Y rotations. However, if you use the same constants, their timing will be the same.

from pop.

kimon avatar kimon commented on September 17, 2024

Concur. Also note Z rotation is the default rotation, and can be achieved using the provided kPOPLayerRotation property. If animating in two dimensions is desired, simply use NSValue to box a vector of two values, eg CGSize or CGPoint. See kPOPLayerPosition and kPOPLayerSize for examples.

from pop.

kyle-rosenbluth avatar kyle-rosenbluth commented on September 17, 2024

Oh that's perfect, thanks!

from pop.

Related Issues (20)

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.