Currently, I am showing 2 triangles at the bottom of my page, one on the left and one on the right. The right triangle is transparent. Both triangles have the same color.
I want to triangle-bottom-righthave an extra gradient level (extra color stops).
It should go from left to right, start with rgba(70, 70, 70, 0.15)and end with rgba(70, 70, 70, 0). The target browser is Chrome (works via Electron).
The resulting triangles should be able to resize to the width of the browser, the height constant.
My CSS:
.triangle-footer {
position: relative;
bottom: 0px;
height: 176px;
width: 100%;
}
.triangle-bottom-left {
position: absolute;
width: 40%;
height: 100%;
left: 0px;
bottom: 0px;
background: linear-gradient(to right top, rgba(94, 194, 82, 100) 50%, rgba(255, 255, 255, 0) 50%);
}
.triangle-bottom-right {
position: absolute;;
width: 125%;
height: 140%;
right: 0px;
bottom: 0px;
background: linear-gradient(to left top, rgba(70, 70, 70, 0.15) 50%, rgba(255, 255, 255, 0) 50%);
}
My HTML:
<div class="ui fixed bottom sticky triangle-footer">
<div class="triangle-bottom-left"></div>
</div>
<div class="ui fixed bottom sticky triangle-footer">
<div class="triangle-bottom-right"></div>
</div>
(Using semantic interface for lower stickiness)
Live Example: http://jsfiddle.net/fu2dhfdv/1/