Git Product home page Git Product logo

Comments (2)

sudara avatar sudara commented on August 23, 2024

Looking at frizDemo, I think my mental model of how sequences work was wrong.

For the above code, I thought I would be setting onUpdate for each tween animation, ala:

        fadeInTween->OnUpdate ([&] (int id, const auto& val) {
            juce::AffineTransform t;
            this->setTransform (t.translated (0, val[1]));
            this->setAlpha (val[0]);
        });

        fadeOutTween->SetDelay (4 * 60);
        fadeOutTween->OnUpdate ([&] (int id, const auto& val) {
            this->setAlpha (val[0]);
        });

But it looks like when I use a sequence as they are now, I'd have to use the sequence's onUpdate, not the individual animations?

I think because I just want to chain 2 animations, i'll sidestep sequences for now and use the first animations onComplete to run the second.

from animator.

bgporter avatar bgporter commented on August 23, 2024

Note -- v 2.1.0 adds a new Chain type that does exactly what you're looking for -- check it out (soon)

from animator.

Related Issues (11)

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.