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

pathLength doesn't work #241

Open
imfenghuang opened this issue Nov 16, 2024 · 0 comments
Open

pathLength doesn't work #241

imfenghuang opened this issue Nov 16, 2024 · 0 comments

Comments

@imfenghuang
Copy link

System info

Mac Chrome v130.0.6723.117
@vueuse/motion: ^2.2.6"

Reproduction

https://stackblitz.com/edit/vitejs-vite-lpx42y?file=src%2FApp.vue

Describe the bug

<svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 100 60"
      fill="none"
      stroke="currentColor"
      stroke-width="2"
      stroke-linecap="round"
      stroke-linejoin="round"
      stroke-dasharray="10"
    >
      
      <path
        v-motion
        d="M 0,20 h100"
        strokeDasharray="10"
        :initial="{opacity: 0.1, pathLength: 10}"
        :hovered="{
          opacity: 1,
          pathLength: 100,
          transition: {
            duration: 1000,
          },
        }"
      />
</svg>

the opacity animation can work, however the pathLength animation doesn't work.

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant