I have 5 diagonal stripes here…
https://jsfiddle.net/70wk1hm2/
.... I have a problem with the left side (and the right -> It should be window-filling), it is empty, there should be stripes too, which come from the left (out of the nothing).And no matter what browser-windowsize. I know that I have a problem with margin-left, but I don't get the result which I would like to see.
And the spacing should be the same on both sides
HTML Code:
<div class="stripe"></div>
<div class="stripe"></div>
<div class="stripe"></div>
<div class="stripe"></div>
<div class="stripe"></div>
CSS Code:
.stripe {
height: 100%;
width: 2%;
background-color: black;
position: fixed;
transform: skew(-20deg);
transform-origin: left bottom;
}
.stripe:nth-child(1) {
height: 100%;
width: 2%;
margin-left: 0%;
background-color: black;
position: fixed;
}
.stripe:nth-child(2) {
height: 100%;
width: 2%;
margin-left: 4%;
background-color: black;
position: fixed;
animation-delay: 0.2s;
}
.stripe:nth-child(3) {
height: 100%;
width: 2%;
margin-left: 8%;
background-color: black;
position: fixed;
}
.stripe:nth-child(4) {
height: 100%;
width: 2%;
margin-left: 12%;
background-color: black;
position: fixed;
}
.stripe:nth-child(5) {
height: 100%;
width: 2%;
margin-left: 16%;
background-color: black;
position: fixed;
}