Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  
  
 <div class="fade" style="width:100; height:100; background:url(http://placehold.it/100x100/cf5);">
    <img src="http://placehold.it/100x100/f1f" />
 </div>
  
  
   <div class="fade" style="width:100; height:100; background:url(http://placehold.it/100x100/f69);">
    <img src="http://placehold.it/100x100/24f" />
 </div>
  
  
  
</body>
</html>
 
var opac=[1, 0.2], c=0;
(function loop(){
  $('.fade img').fadeTo(400, opac[++c%2], loop);
})();
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers