SHARE
TWEET

Imagem Loading Effect (SCRIPT)

1xptolevitico69 Jun 5th, 2020 831 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. i=0;
  2.  
  3.  
  4. sp.onclick=function(){
  5. loader.style.animation='rot 7s linear infinite';
  6. x = setInterval(foo, 50);
  7. function foo(){
  8. i=i+1;
  9. layer.style.transform="translateY("+i+"px)";
  10. sp.style.display='none';
  11. loader.style.display='block';
  12. if(i==533){
  13. clearInterval(x);
  14. loader.style.display='none';
  15. }
  16. }
  17. }
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
Top