Browse with Leap Motion is a browser extension that allows you to use your Leap Motion to browse any site!

Try it now! Meet the creator

Preview

Leap Motion: Disconnected

This site has the extension code adapted to use on this site as a preview. To scroll simply hold your hand flat over your Leap Motion. When you extend your fingers toward the ceiling, the page will scroll up. When you flex your fingers toward the floor, the page will scroll down.

Extend only your pointer finger to move the Leap Motion cursor. To click, extend your thumb.

Ready to Go!

Include this library with a single script reference and have your website navicable by Leap Motion.


Add to Your Site

To use the BrowseWithLeap library, simply download the library here and add this reference to your HTML:



<script src="js/BrowseWithLeap.js"></script>

Attach to Events

The library exposes simple events to attach to the lifecycle of the Leap Motion controller. For example, in the Preview section, you can see the status of the device. This is accomplished by the following code:


BrowseWithLeap.DeviceAttached = function () {
    var status = 
        document.getElementById("status");
    status.innerText = "Attached";
    status.style.color = "black";
}

BrowseWithLeap.DeviceStreaming = function () {
    var status = 
        document.getElementById("status");
    status.innerText = "Connected";
    status.style.color = "green";
}

BrowseWithLeap.DeviceStopped = function () {
    var status = 
        document.getElementById("status");
    status.innerText = "Disconnected";
    status.style.color = "darkred";
}

Contributions Welcome!