Can this particular effect be achieved using CSS? The HTML code cannot be altered.
https://i.sstatic.net/REyjI.png
<html>
<body>
<div class="red"></div>
<div class="blue"></div>
<div class="red"></div>
<div class="blue"></div>
<div class="red"></div>
<div class="blue"></div>
<div class="red"></div>
<div class="blue"></div>
<div class="red"></div>
</body>
</html>