motiondivision / motiondivision/motion

[BUG] Animation slow down when stopping and starting on hover.

Open
#2,504 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.