villiwalla,
if(window.pageYOffset >= (toSection + 200))
if(toSection <= 200)
function programmList(ind) {
var section = document.querySelector(ind);
if(!section||section.classList.contains("active")) return;
var toSection = section.getBoundingClientRect().top;
if(toSection <= 200) {
section.classList.add("active");
var sectionItem = section.querySelectorAll('.programm__item');
console.log('Start Animation ' + ind);
var i = 0;
var speed = 500;
var activeItem = setInterval(function () {
sectionItem[i].classList.add('programm__item_active');
i++;
if(i >= sectionItem.length) {
clearInterval(activeItem);
}
}, speed)
}
}