motiondivision / motiondivision/motion

[BUG] WhileHover not working when motion component contains animate props that is a variant string

Open
#2,542 0 comments 1 reaction 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

Please refer to the screenshot below. The goal is to animate child component when hovering on the parent, but when the child specifies the animate props which is a string defined in child's variant the whileHover has no effect
image

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 reproducing the behavior shown in the linked screenshot: a parent’s whileHover should animate a child whose animate prop is a variant string. Trace the hover and variant handling for motion components, then verify that the child animates as intended when its animate prop refers to a variant.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.