A
A
Anatoly2021-07-01 08:58:15
css
Anatoly, 2021-07-01 08:58:15

Why is one variable applied and another not?

Why does --fill apply but --rotate doesn't?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lagudal, 2021-07-01
@Tolly

Anatoly ,
the devil is in the details.
Your transform is not a style attribute.
You can access fill via css, you can't access the transform attribute you set.
Those. you can rotate in css with the same name transform, but rotate elements directly in svg, not in sprite, and then don't forget to add deg

<style>
element: transform: rotate(180deg);
</style>

those. if you want it with variables, then like this somewhere
https://codepen.io/lagudal/pen/JjNddKZ?editors=1100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question