/KnobKnob

A jQuery plugin for creating shiny knob controls.

Primary LanguageJavaScript

KnobKnob - a jQuery plugin for creating shiny knob controls

Usage:

$('#elem').knobKnob({
	snap : 10,			// Snap to zero if less than this deg.
	value: 154,			// Default rotation
	turn : function(ratio){
		// Do what you want here. Ratio moves from 0 to 1
		// relative to the knob rotation. 0 - off, 1 - max
	}
});

Head on to Tutorialzine for a live demo.