motiondivision / motiondivision/motion
[FEATURE] Ability to inject a callback function into an animate sequence
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 33.7k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 14
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the animate documentation and the existing animate sequence API to determine whether callbacks are already supported. Clarify the intended callback item syntax, timing behavior, and how completion should be observed; done means the documented behavior is implemented and covered by appropriate sequence tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100