SHARE
TWEET

Untitled

a guest Oct 19th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var a = false;
  2. function sleep(ms) {
  3.       return new Promise(resolve => setTimeout(resolve, ms));
  4.     }
  5.     function aparece(){
  6.         if(!a){
  7.             a = true;
  8.             document.getElementById("anime-info").style.animation = "aparece 1s";
  9.             document.getElementById("anime-info").style.display = "block";
  10.             await sleep(3000);
  11.             document.getElementById("anime-info").style.animation = "desaparece 1s";
  12.             await sleep(1000);
  13.             a = false;
  14.         }
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top