Dissapearing images
How can I make images disappear after a few seconds coding please
\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n(1000 = 1 second / 10000 = 10 seconds)\n\nBye. 😊","upvoteCount":13},"suggestedAnswer":[{"@type":"Answer","text":"Put this on CSS file:\n\nimg {\r\n animation-name: transperancychange; \r\n animation-duration: 5s;\r\n}\r\n\n@keyframes transperancychange {\r\n from { opacity: 1.0; }\r\n to { opacity: 0.0; }\r\n}","upvoteCount":10},{"@type":"Answer","text":"@Maz I think css animation still not fully compatible to all browsers yet.","upvoteCount":4},{"@type":"Answer","text":"js:\n\nsetInterval(function() {\n yourImageElement.style.visibility = \"hidden\":\n}, 4)","upvoteCount":2},{"@type":"Answer","text":"https://code.sololearn.com/W9ytRz9oYsyt/?ref=app","upvoteCount":2},{"@type":"Answer","text":"@Calvin Lee F*** IE","upvoteCount":2},{"@type":"Answer","text":"@Maz I just changed opacity to cross browser, hopefully this time can work on your phone. ☺","upvoteCount":2}]} }
How can I make images disappear after a few seconds coding please