Skip to content

Interpolate CSS in .vue components? #4879

@zoomclub

Description

@zoomclub

Until now I had always thought that the CSS section in a .vue component remains static after the component is mounted. To enhance this I was thinking of using CSS Variables and then I ran across this recent fiddle by @yyx990803. The feature looks awesome and just what I was hoping for but dragging the slider does nothing.

http://fiddle.jshell.net/yyx990803/B5JTg/

Being able to interpolate state in both the template and the style layers of a component makes good sense. I had just never heard of this feature in the guide, can it be confirmed and added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions