Giter Club home page Giter Club logo

Comments (17)

mxcl avatar mxcl commented on June 14, 2024 1

This is totally out of scope of this very well defined and well encapsulated library. If you want chaining use another library that is designed for chaining, eg. PromiseKit. Adding chaining to pop would spoil pop a little bit.

from pop.

kimon avatar kimon commented on June 14, 2024

There are two ways to currently chain animations. One approach, is to set the animation beginTime to some offset from CACurrentMediaTime(). Another approach, if solely focused on starting the next animation when the previous one completes, is to use the delegate/completion handler to start the next one. Do either of these work? If not, could you elaborate a little more on what you're trying to accomplish?

from pop.

RuiAAPeres avatar RuiAAPeres commented on June 14, 2024

@kimon does Pop provide something CAAnimationGroup? I guess that's what @kirualex is refering to.

from pop.

kirualex avatar kirualex commented on June 14, 2024

@RuiAAPeres @kimon delegation/completion handlers work quite well but as soon as you handle multiple animations (in sequence or not), it quickly becomes spaghetti.
An approach like CPAnimationSequence to queue animations could result in more clear and maintainable code.

from pop.

grp avatar grp commented on June 14, 2024

The completionBlock property might allow declaring chained animations in an easier-to-understand manner, since it would let the code for all of the animations stay in the same place.

from pop.

oisinlavery avatar oisinlavery commented on June 14, 2024

In the JS world TweenMax/TimelineMax are the most developed animation frameworks. Take a look if you are looking for inspiration on how chaining of animations could be done in a really simple yet powerful way.

http://www.greensock.com/get-started-js/#sequencing

This lib is so flexible, it's only limitation is the platform. I'd love to have something like this in POP.

from pop.

hfossli avatar hfossli commented on June 14, 2024

Does it make sense in a simulation context (pause, reverse, seek etc)? I mean pop isn't just about tweening, but also about adding dynamics to any object. I don't know if dynamics should be reversed, paused etc. Especially not seeked because duration of say a spring animation is not known up front. I guess one could do the reversing by just flip around the from- and to-values, but other than that? To me it seems like if these things were added it could very likely be slowing down further development of pop.

from pop.

martin-c0des avatar martin-c0des commented on June 14, 2024

I am too trying to create a sequence of animations by passing elements to a function like so: func slideLabelsOut(labelArguments: UILabel...) { perform animations }. The thing is currently I have to hardcode the animation for each label so they start one after the other by using CACurrentMediaTime(). It's a lot of repetitive code and it's not really pretty.

from pop.

 avatar commented on June 14, 2024

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

from pop.

freak4pc avatar freak4pc commented on June 14, 2024

Anything new?

from pop.

mitchellporter avatar mitchellporter commented on June 14, 2024

+1 this would be awesome

from pop.

manuelescrig avatar manuelescrig commented on June 14, 2024

+1 Any news?

from pop.

Antanas avatar Antanas commented on June 14, 2024

+1

from pop.

fernandomatal avatar fernandomatal commented on June 14, 2024

+1, still waiting for any news

from pop.

RuiAAPeres avatar RuiAAPeres commented on June 14, 2024

I don't think this project, at this point in time, is being actively maintained. So @fernandolicon I wouldn't count on this feature. 😞

from pop.

fernandomatal avatar fernandomatal commented on June 14, 2024

@RuiAAPeres yeah, I just saw that last update was some time ago. Thanks for the heads up, I would keep using delegate methods 😕

from pop.

Huang-Libo avatar Huang-Libo commented on June 14, 2024

related pull request:
#275

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.