Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 493 Bytes

readme.md

File metadata and controls

17 lines (14 loc) · 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.