Answer the question
In order to leave comments, you need to log in
How can I give the pseudo-element an image name and apply it?
There is this code:
<div class="card" v-for="(card, index) in offers" :key="index">
<div class="cwrap">
<img :src="require(`@/assets/${card.title}.svg`)" alt="" />
<b>{{ card.title }}</b>
<p>{{ card.description }}</p>
</div>
</div>
&::before {
position: absolute;
content: "";
background-image: ; // как передать?
width: 100%;
height: 100%;
}
../assets/Имя.svg
?
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