Coder Social home page Coder Social logo

orbital-dial's Introduction

Orbital dial is a jQuery based dial/knob, and tested on following browsers Chrome 23, Opera 12.11, Safari 6.0.2, Firefox 17, IE6+

Quick start

Choose one of the following options:

  1. Download the latest stable release from https://github.com/gregstewart/orbital-dial.
  2. Clone the git repo — git clone https://github.com/gregstewart/orbital-dial.git - and checkout the tagged release you'd like to use.

Usage

  1. include the orbital-dial.min.js in your page

  2. create a set of containers for the dial background image and then one or more orbiting sliders:

    Each slider represents an element that will orbite around the dial as you interact with it.

  3. Invoke the dial:

    <script> $(document).ready(function () { var orbitalDial = new OrbitalDial({outerSelector: '#OuterSlider', onMoveCallBack: function() { console.log('moving!'); }, onMoveEndCallBack: function() { console.log('Done moving the dial');} }); }); </script>
  4. customise the images for the dial by updating the CSS

  5. you can configure the the dial, by either attaching attributes to the nodes, or by passing in options when you invoke the dial

Features

  • Pure JavaScript solution
  • Works using images and as a result gracefully degrades down to IE6+
  • Supports touch interactions as well as mouse events.
  • Supports onMove and onMoveEnd callbacks
  • 2.4K minified

orbital-dial's People

Contributors

gregstewart avatar

Stargazers

Gordon avatar Yubo avatar  avatar Kenji Kato avatar Jonathan Barratt avatar  avatar Pedro Coutinho avatar Jeremy Wentworth avatar Franco Barbeite avatar Oğuz Çelikdemir avatar

Watchers

That's me avatar James Cloos avatar  avatar

Forkers

kanakiyajay

orbital-dial's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.