0

I have a question about a javascript code to make images visible after 5 seconds. Could you implement the fade effect to the appearance of the images by embedding this code?

function change () {
  var images = document.querySelectorAll(".image img");
    images.forEach(image=>image.style.visibility = "visible");
}
setTimeout (change, 5000);
mpower
  • 21
  • 2
  • Does this answer your question? [Using CSS for a fade-in effect on page load](https://stackoverflow.com/questions/11679567/using-css-for-a-fade-in-effect-on-page-load) - It may not be exact, but you're already 50% there – evolutionxbox Feb 02 '22 at 15:23

0 Answers0