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

Relative motion properties #24

Closed
Tracked by #81
giancarllorojas opened this issue Jun 27, 2021 · 3 comments · Fixed by #195
Closed
Tracked by #81

Relative motion properties #24

giancarllorojas opened this issue Jun 27, 2021 · 3 comments · Fixed by #195
Assignees
Labels
bug Something isn't working

Comments

@giancarllorojas
Copy link

giancarllorojas commented Jun 27, 2021

First, this is a great library, thanks to everyone who contributed to it.

I'm trying to use it with relative(percentage) properties like this:

<div
    v-motion
    :initial="{ x: '0%' }"
    :enter="{ x: '60%' }"
/>

And I'm getting the "TypeError: v.match is not a function" error.

Is this not supported? Thanks!

@Rigo-m
Copy link

Rigo-m commented Apr 27, 2022

I don't know why this is here since June 2021...
Btw, you can leverage popmotion string parsing capabilities and write this code, which works:

<div
  v-motion
  :initial="{ transform: 'translateX(0%)' }"
  :enter="{ transform: 'translateX(60%)'}"
/>

@Rigo-m
Copy link

Rigo-m commented Apr 27, 2022

@antfu this is a very much needed feature, hinders a lot of responsive animations. There should be a clear stand on this issue, when you have 5 minutes could you take a look at this? Thanks 😄 ❤️

@jjjuulliiaann
Copy link

Would be great to have percentage values supported in style properties! :)

@Tahul Tahul mentioned this issue Sep 11, 2022
13 tasks
@BobbieGoede BobbieGoede added the enhancement New feature or request label Apr 25, 2024
@BobbieGoede BobbieGoede added bug Something isn't working and removed enhancement New feature or request labels May 30, 2024
@BobbieGoede BobbieGoede self-assigned this May 30, 2024
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

Successfully merging a pull request may close this issue.

4 participants