const goods = document.querySelectorAll('.product')
var coun = 0;
window.addEventListener('load', function() {
function activeItem() {
this.classList.toggle('active')
}
var fun = setInterval(function(){
activeItem.call(goods[coun++])
сlearInterval(fun)
},400)
})