Skip to content

Ability to trigger event on animation start (after delay but before complete) #7

@heaversm

Description

@heaversm

Hi - I have an animation chained with other animations:

elem.animate({
            delay: delay1,
            duration: duration1,
        })
        .opacity(1)
            .animate({
                delay:delay2,
                ease: '>',
                duration: duration2,
            })
            .fill({
                opacity: 0.3,
            })
            .during(function (pos, morph, eased, situation) {
                //this triggers at start of delay
            })
            .after((situation) => {
                //this triggers at end of anim
            });
});

And I want to trigger an event after the delay2, but before the second animation completes. Is this possible, or will I need to use a timeout or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions