Answer the question
In order to leave comments, you need to log in
How to make a smooth transition between background linear with props?
I have a component:
<div id="circle__root"
:style="{
width: `${size + step * 2}px`,
height: `${size + step * 2}px`
}"
:class='{pulseAnimation: pulse}'
>
<div
class="circle small bm"
:style="{ width: `${size}px`, height: `${size}px`, background: color}"
>
<div
class="circle middle bm"
:class='{reverse: reverseAnim}'
:style="{
width: `${size + step}px`,
height: `${size + step}px`,
background: color,
}"
>
<div
class="circle big"
:class='{reverse: reverseAnim}'
:style="{
width: `${size + step * 2}px`,
height: `${size + step * 2}px`,
background: color,
}"
></div>
</div>
</div>
</div>
linear-gradient(181.42deg, rgba(50, 207, 245, 0.17) 1.21%, #4DDCFF 61.62%)
linear-gradient(181.42deg, rgba(50, 245, 210, 0.17) 1.21%, #4DFFD4 61.62%)
linear-gradient(181.42deg, rgba(194, 245, 50, 0.17) 1.21%, #C2F532 61.62%)
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