I'm looking to recreate the four shapes showcased on this website using HTML5 Canvas, while ensuring that the page stretches to 100% width and height.
Is this achievable? I am relatively new to working with Canvas.
Below is my current CSS code:
html, body{
height: 100%;
margin:0;
}
.out{
height:100%;
position:relative;
overflow:hidden;
}
.in{
height:75%;
background-color:#6C2223;
}
.out:before, .out:after, .in:after{
content:'';
position:absolute;
bottom:25%;
width:100%;
height:700%;
background-color:#9A4445;
}
.out:before{
right:50%;
-webkit-transform-origin: 100% 100%;
transform-origin: 100% 100%;
-webkit-transform : rotate(-45deg);
transform : rotate(-45deg);
}
.out:after{
left:50%;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform : rotate(45deg);
transform : rotate(45deg);
}
.in:after{
bottom:0;
width:100%;
height:25%;
background-color:#911618;
z-index:-1;
}
img{
width:100%;
height:auto;
position:absolute;
top:0;
z-index:3;
opacity:0.5;
}
.text{
position:absolute;
top:0;
z-index:4;
}
I would appreciate any assistance provided. Thank you.