motiondivision / motiondivision/motion

[BUG] The animation scale "jumps"

Open
#2,284 6 comments 0 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

I want to make an animation of a modal window opening when I click on one of the cards and it moves to the modal window.
During the animation the card should move to the modal window and change its size ( scale(1.5) ), but the size during the animation becomes too large ( more than specified ) and at the end of the animation sharply becomes correct

Sandbox doesn't work for me, so I use StackBlitz
UPD: I fixed codeSandbox,

To get the same error you just have to click on any card

Video

Sorry if something is not clear, I used a translator and I am new to programming

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 with the reproduced example in src/components/CardModal/CardModal.jsx using the linked CodeSandbox or StackBlitz, then click a card to observe the scale jump during the modal transition. Compare the animation's intermediate scale with the intended scale(1.5); done means the card reaches the modal without overshooting before settling.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.