JSFiddle - React, Tailwind, and code Playground
by silvawebdesigns
HTML
<div class="scrolldown-wrapper">
<div class="scrolldown">
<svg height="30" width="10">
<circle class="scrolldown-p1" cx="5" cy="15" r="2" />
<circle class="scrolldown-p2" cx="5" cy="15" r="2" />
</svg>
</div>
</div>
CSS
body {
background: #000;
}
/* Scroll Down */
.scrolldown-wrapper {
left: 50%;
position: absolute;
text-align: center;
bottom: 0;
transform: translate(-50%, -50%);
}
.scrolldown {
border: 2px solid #FFFFFF;
border-radius: 30px;
height: 46px;
margin: 0 auto 8px;
text-align: center;
width: 30px;
}
.scrolldown-p1,
.scrolldown-p2 {
animation-duration: 1.5s;
animation-name: scrolldown;
animation-iteration-count: infinite;
fill: #FFFFFF;
}
.scrolldown-p2 {
animation-delay: .75s;
}
@keyframes scrolldown {
0% {
opacity: 0;
transform: translate(0, -8px);
}
50% {
opacity: 1;
transform: translate(0, 0);
}
100% {
opacity: 0;
transform: translate(0, 8px);
}
}