Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taylorhakes/html5-sortable

HTML5 Sortable without jQuery
https://github.com/taylorhakes/html5-sortable

Last synced: about 1 month ago
JSON representation

HTML5 Sortable without jQuery

Awesome Lists containing this project

README

        

HTML5 Sortable [![Build Status](https://travis-ci.org/taylorhakes/html5-sortable.svg?branch=master)](https://travis-ci.org/taylorhakes/html5-sortable)
========

HTML5 Sortable. No jQuery needed. Only .5KBs gzipped!

###
Based on [HTML5Rocks Demo](http://www.html5rocks.com/en/tutorials/dnd/basics/)

## Simple API

```
var s = Sortable({
els: '.sortable' // Selector or array of elements

// Optional params

// Behavior of drag and drop ('insert' or 'swap')
type: 'insert'
});

// destroy
s.destroy();
```

## Demo
[Demo Link](http://taylorhakes.github.io/html5-sortable)