With the help of JS/Jquery I am trying to add css after a last child element but am completely lost on how to do that! More specifically I would like to implement the following three times, so I get three "dots".
.milestone:last-child {
position: relative;
.milestone_line:after {
position: absolute;
content: '';
display: block;
height: 12px;
width: 12px;
border-radius: 20px;
bottom: -25px;
background-color: green;
}
}
function milestoneEllipsis() {
for (var i = 0; i < 3; i++) {
var lastMilestone = $('.milestone:last-child > milestone_line').after("the css content");
console.log(lastMilestone);
}
}