直接上代码:
<div class="scroll_down" @click="goScroll"></div>
.scroll_down {
margin-top: 150px;
width: 100%;
height: 90px;
cursor: pointer;
background: url('../../assets/down.svg') center center no-repeat;
animation: smallbounce 0.2s ease-in-out infinite alternate;
}
@keyframes smallbounce{
0% {
margin-top: 145px;
}
100% {
margin-top: 150px;
}
}