Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <style>
  
    .jumbotron {
          background-image: url('http://r6siegepro.pl/headerbgdark.png');
          background-color: #fff;
          background-size: cover;
          transition: background-image .5s linear;
      }
  
  </style>
</head>
<body>
  
  <div class="jumbotron">
    <div class="container">
      <h1>SOME SAMPLE TEXT TO FILL EMPTY SPACE</h1>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate</p>      
    </div>
  </div>
  
  
  <script>
    var swtich_bg = document.querySelectorAll('.jumbotron')[0];
    var switch_bg_toggle; 
    
    setInterval(function(){
      if ( switch_bg_toggle ) {
        swtich_bg.style.backgroundImage = "url('http://r6siegepro.pl/headerbgdark.png')";
        switch_bg_toggle = false;
      } else {
        swtich_bg.style.backgroundImage = "url('http://r6siegepro.pl/headerbgdark2.png')";
        switch_bg_toggle = true;
      }
    }, 1000);
    
  </script>
  
  
  
  
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers