JSFiddle - React, Tailwind, and code Playground
by 3rror404
JavaScript
var loop = setInterval(MyFunction, 1000);
function MyFunction(){
var x = document.getElementById("demo");
var date = new Date();
console.log(date.getSeconds());
if(date.getSeconds()=="20"){
document.getElementById("image").style.display = "block";
setTimeout(function (){document.getElementById("image").style.display = "none";}, 3000);
}
}