For example, having those html tags:
.triangle-one {
width: 0;
height: 0;
border-left: 60px solid transparent;
border-right: 60px solid transparent;
border-bottom: 100px solid rgb(20, 97, 27);
margin-top: -69px;
}
.triangle-two {
width: 0;
height: 0;
border-left: 90px solid transparent;
border-right: 90px solid transparent;
border-bottom: 150px solid rgb(20, 97, 27);
margin-top: -40px;
}
.triangle-three {
width: 0;
height: 0;
border-left: 120px solid transparent;
border-right: 120px solid transparent;
border-bottom: 200px solid rgb(20, 97, 27);
margin-top: -80px;
}
.triangle-four {
width: 0;
height: 0;
border-left: 150px solid transparent;
border-right: 150px solid transparent;
border-bottom: 250px solid rgb(20, 97, 27);
margin-top: -120px;
}
div {
margin:auto;
}
<div class="triangle-one"></div>
<div class="triangle-two"></div>
<div class="triangle-three"></div>
<div class="triangle-four"></div>
The values of border-left, border-right, border-bottom and margin-top are proportional.
It starts from triangle-one with some values and those values are multiplied on each step by 1.5.
Is there a way to write a formula for this?