So I've got this JS program: http://codepen.io/anon/pen/avgQVa
$('.divider').draggable({
axis: 'x',
drag: function(e, ui) {
$('.right').width(100 - ui.position.left);
$('.yellow').css('right', ui.position.left);
}
});
I can reveal red rect by moving the grey divider to the right, but I need this divider to follow my mouse whenever I enter this block. How do I do this?