Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Transition prop uses default when defined with Variants or the Parent Element #3000

Open
gavink97 opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@gavink97
Copy link

2. Describe the bug
'Initial' Transition property defined in variants, and transition prop on parent element not working as expected, defaults to default transition.

Only works when creating a transition prop on the animating element.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/sandbox/3qhrh4

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Try to use initial transition value in variants to define the transition between hover - initial.
  2. Try to use the transition prop inside motion.div to define the transition between hover - initial.
  3. Try to use the transition prop inside motion.line to define the transition.

5. Expected behavior

Expected transition to use the transition property value defined in variants or on the parent element rather than the default transition.

7. Environment details

MacOS, Arc, Firefox Dev

@gavink97 gavink97 added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant