Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
  <!-- 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>
  
  
  <!-- List with handle -->
  <ul id="listWithHandle">
      <li class="list-group-item">
        <span class="glyphicon glyphicon-move my-handle" aria-hidden="true"></span>
        Item 1
      </li>
    <li class="list-group-item">
        <span class="glyphicon glyphicon-move my-handle" aria-hidden="true"></span>
        Item 2
      </li>
  </ul>
  
</body>
</html>
 
body {
  padding: 30px;
}
ul {
  list-style: none;
}
.my-handle {
  cursor: move;
  cursor: -webkit-grabbing;
}
 
// List with handle
Sortable.create(listWithHandle, {
  handle: '.my-handle',
  animation: 150
});
Output 300px

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

Dismiss x
public
Bin info
owen-m1pro
0viewers