I have the following html/CSS which creates an element on the bottom of a div with an image background
shape created at the bottom of the div ...
HTML
<div style="background-image:url('...');">
<div class="mask"></div>
</div>
CSS
.mask:before {
border-left: 0 none;
border-right: 20px solid transparent;
left: 0;
}
.mask:after {
border-left: 20px solid transparent;
border-right: 0 none;
right: 0;
}
.mask:before, .mask:after {
border-bottom: 20px solid #fff;
content: " ";
display: block;
height: 0;
position: absolute;
top: 0;
width: 50%;
box-sizing: border-box;
}
.mask {
bottom: 0;
height: 20px;
left: 0;
position: absolute;
width: 100%;
z-index: 1000;
}
I have this code under my 'mobile' jQuery. I want the shape to rotate (the 'arrow/triangle' point to the side) on screen sizes. But not sure how to rewrite the code to do this.
EDIT