93
rated 0 times
[
95]
[
2]
/ answers: 1 / hits: 16638
/ 12 Years ago, tue, january 8, 2013, 12:00:00
I'm trying to make my browser window scroll down to the top of a div when clicked. The only problem is everything else works but that, the window should scroll down to the top of the div clicked...
So far I have:
$('.work-showcase').click(function(){
$('.work-showcase').animate({height:'135px'}, 500);
$(this).animate({height:'400px'}, 500);
$(window).scrollTop;
});
I've made a jsfiddle to show you what I mean...
http://jsfiddle.net/Jq4Vw/
More From » jquery