var pos = sticky.offsetTop, win = window;
                  
                  
                  
                  
                  
                    win.addEventListener("scroll", function() {
                  
                  
                      win.scrollTop > pos ? sticky.classList.add("custom-sticky") : sticky.classList.remove("custom-sticky");
                  
                  
                    });
                  
                  
                  }
                  
                  
                
Sorry, i just tested it...it didnt worked. it doesnt raise any error, but the class is not changed
Обсуждают сегодня