css
.top_show {
pointer-events: auto;
opacity: 1;
}
.dt-back-top {
position: fixed;
bottom: 3.07rem;
right: .53rem;
display: flex;
justify-content: center;
align-items: center;
width: 1.07rem;
height: 1.07rem;
width: 1.07rem;
border-radius: 50%;
background: rgba(255, 255, 255, 1);
border: 0.03rem solid rgba(152, 159, 179, 0.5);
z-index: 3;
transition: all .3s;
pointer-events: none;
opacity: 0;
}
juqery
var timer = null
window.addEventListener('scroll', function () {
$('.dt-back-top').removeClass('top_show')
if (timer) {
clearTimeout(timer)
}
timer = setTimeout(() => {
$('.dt-back-top').addClass('top_show')
}, 300)
}, false)