JSFiddle - React, Tailwind, and code Playground
HTML
<div class="dots-wrapper">
<a href="#section-1"><span class="dots"></span></a>
<a href="#section-2"><span class="dots"></span></a>
<a href="#section-3"><span class="dots"></span></a>
<a href="#section-4"><span class="dots"></span></a>
</div>
<section id="section-1"></section>
<section id="section-2"></section>
<section id="section-3"></section>
<section id="section-4"></section>
CSS
*, *::after, *::bedore {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
position: relative;
}
section {
width: 100%;
height: 400px;
}
#section-1 { background-color: grey; }
#section-2 { background-color: #FCFAF4; }
#section-3 { background-color: red; }
#section-4 { background-color: green; }
.dots-wrapper {
position: fixed;
top: 140px;
right: 40px;
display: flex;
flex-direction: column;
mix-blend-mode: difference;
}
.dots {
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
background: #8ad;
margin-bottom: 10px;
}