document.querySelectorAll('.button').forEach(item =>
item.addEventListener('click', _=> {
document.querySelector('.next').classList.add('active');
setTimeout( () => { document.querySelector('.next').classList.remove('active) }, 5000 )
})
)