JavaScript University continues today as we learn more about approaches of the Range item, how to return worths from functions, scope, and even your very first animation.
JavaScript from Null: Chapter 4
CSS Best Sellers
JavaScript University continues today as we learn more about approaches of the Range item, how to return worths from functions, scope, and even your very first animation.
Thanks
Jeffrey, as you saw, setInterval will never stop calling unnamed function, and opacity wil decrease to – infinity, so you should have stored setInterval int a variable end if(elem.style.opacity<=0) clearInterval(var);