Answer the question
In order to leave comments, you need to log in
Transition not working in svg inline use when using variable?
I am using code like this:
<svg class="svg svg_ex-1">
<use href="sprite/sprite.svg#bit"></use>
</svg>
<symbol id="bit" viewBox="0 0 24 24">
<path fill="var(--ex-1)" style="transition: 0.4s;" d="long..."/>
</symbol>
:root {
--ex-1: #ffbd23;
}
&_ex-1 {
width: 50px;
height: 50px;
&:hover {
--ex-1: #ff6885;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question