diff --git a/README.md b/README.md index cf66cf2..4b29ee8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,63 @@ -# dragit -Click/tab and drag to scroll content within a container. +# Dragit +Click/tap and drag to scroll content within a container. Apply Dragit to a single container or every container on your page. Dragit is a small and simple plugin to use however you need. + +[DEMO](https://codepen.io/azinasili/pen/bWdXGr?editors=1010) + +## Installation +With [NPM](https://www.npmjs.com/package/dragit): + +```bash +npm install dragit --save +``` + +With [Bower](https://bower.io/): + +```bash +bower install dragit --save +``` + +Or include Dragit directly: + +```html + +``` + +Dragit is written using [ES2015 modules](http://2ality.com/2014/09/es6-modules-final.html). To import Dragit into an ES2015 application: + +```javascript +import Dragit from 'dragit'; +``` + + +## Usage +Dragit only requires the container element to be smaller than it's contents. + +```html +