Hi! I'm using the greensock ScrollTo plugin and it works perfectly. but if I'm trying to use it on a div with overflow:auto instead of the "window" and it dosen't work at all.
Somebody knows if there is any way to make it work?
Ex:
This works:
$('#div_id').click({
TweenLite.to(window, 1, {scrollTo:{y: 500, x:0}, ease:Power4.easeInOut});
});
This Not:
$('#div_id').click({
var wrap = $('#wrap')
TweenLite.to(wrap, 1, {scrollTo:{y: 500, x:0}, ease:Power4.easeInOut});
});
Tnx to all