Guest User

Untitled

a guest
Jan 24th, 2020
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <style>
  5.             #nik {
  6.                 transition: all 2s ease;
  7.                 width: 100px;
  8.                 height: 100px;
  9.                 background: blue;
  10.             }
  11.         </style>
  12.     </head>
  13.     <body>
  14.         <div id="nik"></div>
  15.     </body>
  16.     <script>
  17.         nik = document.querySelector('#nik')
  18.  
  19.         setInterval(() => { nik.style.background = 'red' }, 2000)
  20.     </script>
  21. </html>
RAW Paste Data