Home › Forums › JavaScript › Need help making transparent transition in slideshow › Reply To: Need help making transparent transition in slideshow
November 28, 2016 at 9:16 am
#248385
Shikkediel
Participant
Hey… I discovered a mistake in the code that I think I copied. First the element is defined as myImage
:
var myImage = document.getElementById('mySlide');
But later it is referred to as mySlide
instead. This happens to still work because an id
can become a global variable, is what I only discovered last week. But is isn’t really correct to do. So here’s an improved version that I added some other modern support to: