Link to home
Start Free TrialLog in
Avatar of Brad Bansner
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!
$(function(){
	$('#gr_arrow_right').click(function(){
		$('#productcontainer').animate({
			left:'-=168px'
		}, 200);
	});
});

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jrm213jrm213
jrm213jrm213
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brad Bansner
Brad Bansner

ASKER

Ah, glad it was that simple. Thank you!