jquery sliders contain a "animate" opton that when set to "true" will slide the handle into postion when the slider bar is clicked.
Im using my slider to scroll the content in another div, creating a similar eeffect as the one on the apple website. http://www.apple.com/mac/
the problem is that when i click the sliderbar it smoothly animates the handle but not the other div. i have the other div scrolling on the "slide" and "change" events. any ideas how i can achieve smooth scrolling for the other div?
Thanks in advance, oh gods of jQuery.
my code:
var list = $('.sliderGallery ul');
$('.slider').slider({
min:0,
max:1500,
animate: true,
slide: function(event, ui) { list.css('left', '-' + ui.value + 'px'); },
change: function(event, ui) { list.css('left', '-' + ui.value + 'px'); }
});