R
R
Recardo_Recoly2018-01-31 22:27:18
HTML
Recardo_Recoly, 2018-01-31 22:27:18

How to reshape a div?

5y3EHMy.png
I wanted to make 3 stripes that animate to the right side.
What I did above.
But the problem appeared.
If you assign a picture to it, the picture will also have a rotation.
How it is possible to correct it?
So that the strip is at an angle and the picture is even and does not climb beyond its limits.
CSS stripes:

margin-left: 20px; width: 33%; height: 100%;
            transform: skew(20deg);
            position: absolute;

Maybe it's possible to just change its shape to this one but not rotate it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Vedishchev, 2018-01-31
@Recardo_Recoly

Try to make the stripes an animated picture (GIF) and paste it as a background
Or take JS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question