Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 493 Bytes

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.