diff --git a/README.md b/README.md index fa78de4..0b768d4 100644 --- a/README.md +++ b/README.md @@ -1,75 +1,64 @@ # vanilla-picker -A simple, easy to use, versatile and customizable vanilla JS color picker. +A simple, easy to use vanilla JS (no dependencies) color picker with alpha selection. -Using it is as simple as this: +#### Demo -```javascript -var parent = document.querySelector('#parent'); -var picker = new Picker(parent); - -parent.onclick = function() { - picker.show(); -}; -picker.onDone = function(color) { - parent.style.background = color.rgbaString; -}; -``` +https://rawgit.com/Sphinxxxx/vanilla-picker/master/demo/index.html +https://codepen.io/Sphinxxxx/pen/zRmKBX -#### Demo -https://rawgit.com/Sphinxxxx/vanilla-picker/master/demo/index.html +## Getting Started -https://codepen.io/Sphinxxxx/pen/zRmKBX +#### Installing +* For the pros: -## Explained + + ```npm install vanilla-picker --save``` + + ```import Picker from 'vanilla-picker';``` -```html - +* For the rest of us: + +``` + +``` -
click me
+#### Usage + +```html +
Click me
``` diff --git a/demo/index.html b/demo/index.html index c3e7598..7ba8ab9 100644 --- a/demo/index.html +++ b/demo/index.html @@ -6,28 +6,30 @@ vanilla-picker - +