Skip to content

[FEATURE] Ability to inject a callback function into an animate sequence #2205

@pr1ntr

Description

@pr1ntr

Is your feature request related to a problem? Please describe.
Its not straightforward to inject a trigger in the middle of an animate sequence.

Describe the solution you'd like
Ability to inject a callback function into an animate sequence to be able to trigger arbitrary code in the middle of a sequence. eg.,

animate([
  [...anim1],
  [...anim2],
  [() => {
    //do something
  }, {at: '<'}]
])

Describe alternatives you've considered
My animation is on a scroll so I use the scroll the delta to trigger, but its not a great solution.

Additional context
Tbh, maybe this is possible but im not sure from reading the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions