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

CSS Custom properties support? #179

Open
Matoseb opened this issue Feb 26, 2024 · 1 comment
Open

CSS Custom properties support? #179

Matoseb opened this issue Feb 26, 2024 · 1 comment

Comments

@Matoseb
Copy link

Matoseb commented Feb 26, 2024

System info

  • Operating System: Darwin
  • Node Version: v19.5.0
  • Nuxt Version: 3.8.1
  • CLI Version: 3.9.1
  • Nitro Version: 2.7.2
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

<div
v-motion="{
  initial: {
      '--progress': 0,
  },
  enter: {
      '--progress': 1,
  },
}">
</div>

--progress is inserted but stuck at initial state (value: 0).

Describe the bug

CSS Custom properties are inserted, but they do not update.

Additional context

No response

Logs

No response

@kuoruan
Copy link

kuoruan commented Feb 28, 2024

+1

const { style } = useElementStyle(target)

style.setProperty('--color', '#000') 

this also not working.

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

2 participants