React
HTML
<div id="app"></div>
CSS
.timeline {
width: 50%;
background-color: yellow;
position: relative;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.indicator {
position: absolute;
height: 35px;
width: 4px;
background-color: #a43725;
}
.one {
top: 50%;
left: 30%;
}
.two {
top: 50%;
left: 31%;
}
.three {
top: 50%;
left: 32%;
}
.four {
top: 60%;
left: 40%;
}
.five {
top: 60%;
left: 41%;
}
.six {
top: 60%;
left: 42%;
}
React
function App() {
return (
<div className="timeline">
<div className="indicator one"></div>
<div className="indicator two"></div>
<div className="indicator three"></div>
<div className="indicator four"></div>
<div className="indicator five"></div>
<div className="indicator six"></div>
</div>
);
}
ReactDOM.render(<App />, document.querySelector("#app"))