Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="normal"></div>
</body>
</html>
 
.normal {
  background: -webkit-linear-gradient(#C7D3DC,#5B798E);  
  background: -moz-linear-gradient(#C7D3DC,#5B798E);  
  background: -o-linear-gradient(#C7D3DC,#5B798E);  
  background: linear-gradient(#C7D3DC,#5B798E);  
      
  -webkit-transition: background .5s ease-out;  
  -moz-transition: background .5s ease-out;  
  -o-transition: background .5s ease-out;  
  transition: background .5s ease-out;  
  
  background-size:1px 200px;  
  border-radius: 10px;  
  border: 1px solid #839DB0;  
  cursor:pointer;  
  width: 150px;  
  height: 100px;  
}
.gradient {
   background-position:700px;  
}
 
$('.normal').hover(function(){
  $(this).toggleClass('gradient');
});
Output

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

Dismiss x
public
Bin info
gastlichpro
0viewers