chenglou / chenglou/react-motion

onStep callback for Motion

Open
#357 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I'm curious how maintainers would feel about adding a callback for each step (more or less calling an optional callback each time the `render` function of `Motion` is run). We use `Motion` at my work and have found ourselves in a situation where `onStep` (or something like that) would be really helpful.

Please let me know if this is something we're open to. I'd be happy to do the work myself. If it's a no go, I'm happy to fork.

Cheers!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the Motion component's render function, which the issue identifies as the point where an optional callback would run. Clarify the callback's API and step semantics with maintainers; done means an agreed onStep behavior is implemented and verified for each render step.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.