Skip to content

[BUG] Dashed SVG path becomes regular SVG path when Framer Motion animation is applied #2090

@mukhammad-akilov

Description

@mukhammad-akilov

1. Read the FAQs 👇

2. Describe the bug
I am trying to animtion path in SVG element which has several solid and dashed lines (craeted with tag).
Solid lines work nice but the dashed ones become solid when animation is applied.
When I remove initial and animate props from maotion.path component the line becomes dashed as expected

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

Link to sand box: https://stackblitz.com/edit/react-vc216w?file=src/App.js

4. Steps to reproduce

Steps to reproduce the behavior:
Everything in inital page in Stack Blitz page

5. Expected behavior

Dashed line should be animated without becoming solid line

7. Environment details

OS: Windows 10
Browser: Google Chrome 111

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions