I'm using a jquery slider and my slider handle is pretty big. In order for it to be the way I want it has to have margin-left: -2px
when it's at 0 (all the way to the left) and have margin-left: -32px
when it's at 100 (all the way to the right).
I want to ease into the correct margin rather than setting it upruptly. It can be done using the slide event but I'm having a little trouble with the calculation:
$(...).slider({
slide: function(event, ui){
var newMarginLeft = ...calculation... (ui.value is 0-100)
$(this).children(".ui-handle").css("marginLeft", newMarginLeft);
}
});