Brad Bansner
asked on
click graphic to animate DIV inside another DIV
My page:
http://www.joiebaby.com/new/our-products.asp
The DIV productscroller is positioned absolute and has overflow:hidden. Within that, DIV productcontainer contains all the individual product blocks. Then the nine individual products are each within their own DIV with class "products".
All I want is that when the right arrow is clicked, the DIV productcontainer slides to the left 168px (inside productscroller), so that the user can scroll to see the four products that are not visible.
My functions is attached. When I click the arrow button, nothing moves at all. Would appreciate any suggestions. Thank you!
http://www.joiebaby.com/new/our-products.asp
The DIV productscroller is positioned absolute and has overflow:hidden. Within that, DIV productcontainer contains all the individual product blocks. Then the nine individual products are each within their own DIV with class "products".
All I want is that when the right arrow is clicked, the DIV productcontainer slides to the left 168px (inside productscroller), so that the user can scroll to see the four products that are not visible.
My functions is attached. When I click the arrow button, nothing moves at all. Would appreciate any suggestions. Thank you!
$(function(){
$('#gr_arrow_right').click(function(){
$('#productcontainer').animate({
left:'-=168px'
}, 200);
});
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER