Answer the question
In order to leave comments, you need to log in
How to rotate the image, for example, 180 gr. (or reverse the image) using css for the image set by content in pseudo-elements?
.carousel-control .icon-next:before {
content: url(images/arrow-left-carusel-2.png);
}
transform: rotate(180deg);
Answer the question
In order to leave comments, you need to log in
I understand what's the matter, transform just needs to be applied not to the pseudo-element, but to the element itself.
Those. So
.carousel-control .icon-next {
transform: rotate(180deg);
}
/* или так */
.carousel-control .icon-next {
transform: scaleX(-1);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question