V
V
Viorel2018-03-16 12:29:04
css
Viorel, 2018-03-16 12:29:04

CSS transform skewY how to make the background image not flip?

Hello everyone, I'm making up a layout from photoshop,
5aab8dbbc02e8879417807.png
as you can see from the layout, the background image is horizontal,
I decided to use transform skewY,
how to make the background image not flip
here is my code
5aab8e535c94e027386407.png

<section class="popular-position" style="background-image: url(img/bg_populars.jpg);">
  <div class="grid-container">
    <div class="section_title">
      <h2><span>Популярные  </span> позиции </h2>
    </div>
    <div class="grid-x grid-padding-x grid-margin-y">

    </div>
  </div>
</section>

.popular-position {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    transform: skewY(9deg);
    min-height: 600px;
    z-index: -1;
}

.popular-position > * {

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogatov, 2018-03-16
@Malekith

Set wrapper background and flip container?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question