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>Demo by roXon</title>
</head>
<body>
  
  <button id="left">left</button>
  <button id="right">right</button>
  
  <div id="gallery">
    <div id="slider">
      <img src="http://placehold.it/300x150/cf5&text=c=0" alt="" />
      <img src="http://placehold.it/300x150/f0f&text=c=1" alt="" />
      <img src="http://placehold.it/300x150/444&text=c=2" alt="" />
      <img src="http://placehold.it/300x150/f70&text=c=3" alt="" />
    </div>
  </div>
</body>
</html>
 
#gallery{
  width:300px;
  height:150px;
  position:relative;
  overflow:hidden;
  
}
#slider{
  position:absolute;
  height:150px;
  left:0; 
  width:9999px;
}
#slider img{
  float:left;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers