Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
  
  
<!-- Latest Sortable -->
<script src="https://raw.githack.com/SortableJS/Sortable/master/Sortable.js"></script>
  
  
<!-- Simple List -->
<div id="simpleList" class="list-group"></div>
 
/* ghostClass */
.ghost {
  opacity: .5;
  background: #C8EBFB;
}
body {
  padding: 20px;
}
.list-group-item {
  cursor: move;
}
 
Sortable.create(simpleList, {
  ghostClass: 'ghost'
});
// Generate 100 items
simpleList.innerHTML = Array.apply(null,  new Array(100)).map(function (v, i) {
  return '<div class="list-group-item">item ' +
    (i + 1) +
    '</div>';
}).join('');
Output

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

Dismiss x
public
Bin info
owen-m1pro
0viewers