##Leap Motion HTML5 CSS web frontend framework. Based on Twitter Bootstrap, LeapJS and more. ###Leapstrap brings the power of touch to your website in an extensive yet easy to use HTML5 framework, eliminating the need for installing Leap apps (through Airspace).
--
Get a Leap Motion Controller, get Leapstrap and put your fingers to work. Leapstrap provides complete HTML5 front-end interactivity for Leap Motion® devices and controllers. If you want to use a Leap® with your website, Leapstrap is for you. Created and maintained by Alex Wilkes. Based on Twitter Leapstrap, LeapJS and Leap Cursor Library. Touch the web today!
To get started, check out http://wilkesalex.github.io/leapstrap !
These quick start options are available:
Then:
- Attach the Leapstrap CSS, JS and initalising script to your page
- Give elements a class of
leap-interactive
- Use Leap to browse and interact!
Read the Getting Started page for more information.
Have a bug or a feature request? Please open a new issue.
Leapstrap's documentation, included in this repo in the root directory, is built with Jekyll and publicly hosted on GitHub Pages at http://wilkesalex.github.io/leapstrap/. The docs may also be run locally.
- If necessary, install Jekyll (requires v1.x).
- From the root
/leapstrap
directory, runjekyll serve
in the command line.
- Windows users: run
chcp 65001
first to change the command prompt's character encoding (code page) to UTF-8 so Jekyll runs without errors.
- Open http://localhost:9001 in your browser, and voilà.
Learn more about using Jekyll by reading its documentation.
Leapstrap uses Grunt with convenient methods for working with the framework. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.
From the command line:
- Install
grunt-cli
globally withnpm install -g grunt-cli
. - Navigate to the root
/leapstrap
directory, then runnpm install
. npm will look at package.json and automatically install the necessary local dependencies listed there.
When completed, you'll be able to run the various Grunt commands provided from the command line.
Unfamiliar with npm
? Don't have node installed? That's a-okay. npm stands for node packaged modules and is a way to manage development dependencies through node.js. Download and install node.js before proceeding.
Run grunt
to run tests locally and compile the CSS and JavaScript into /dist
. Uses recess and UglifyJS.
grunt dist
creates the /dist
directory with compiled files. Uses recess and UglifyJS.
Runs JSHint and QUnit tests headlessly in PhantomJS (used for CI).
This is a convenience method for watching just Less files and automatically building them whenever you save.
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun npm install
.
Keep track of development and community news.
- Follow @leapstrap on Twitter.
Twitter Leapstrap
Leap JS
leap-cursor-library
Copyright 2013 Alex Wilkes. Further License Information TBC.