motiondivision / motiondivision/motion
[BUG] Animation slow down when stopping and starting on hover.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 33.7k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 14
Description
1. Read the FAQs 👇
2. Describe the bug
Pausing and starting an animation slows it down. (trying to pause animation on hover).
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/sandbox/framer-custom-slider-dots-forked-q1wr4
4. Steps to reproduce
Steps to reproduce the behavior:
- spam hover on the box.
5. Expected behavior
The animation time (in this case, a progress bar) should resume, and the time to complete should be the remaining time of the animation when you stop it.
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 by running the linked CodeSandbox and reproducing the slowdown by repeatedly hovering over the box. Trace the hover pause and resume behavior in the Motion animation code; done means the animation resumes with only its remaining duration instead of slowing after repeated stops and starts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100