scroll to top before content loads for smoother feedback
This commit is contained in:
parent
b22b13d73f
commit
ed202b61d3
1 changed files with 4 additions and 5 deletions
|
|
@ -37,11 +37,13 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
// loading animation
|
// loading animation
|
||||||
$("#aspect_stream_container").fadeTo(100, 0.4);
|
$("#aspect_stream_container").fadeTo(200, 0.4);
|
||||||
$("#aspect_contact_pictures").fadeTo(100, 0.4);
|
$("#aspect_contact_pictures").fadeTo(200, 0.4);
|
||||||
|
|
||||||
performAjax( $(this).attr('href'));
|
performAjax( $(this).attr('href'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('html, body').animate({scrollTop:0}, 'fast');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#aspect_nav a.aspect_selector").click(function(e){
|
$("#aspect_nav a.aspect_selector").click(function(e){
|
||||||
|
|
@ -171,9 +173,6 @@ $(document).ready(function(){
|
||||||
photos_html = photos_html + "<li style='position:relative;'> " + ("<img src='" + photos[key] +"' data-id='" + key + "'>") + "</li>";
|
photos_html = photos_html + "<li style='position:relative;'> " + ("<img src='" + photos[key] +"' data-id='" + key + "'>") + "</li>";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
$('html, body').animate({scrollTop:0}, 'fast');
|
|
||||||
|
|
||||||
// reinit listeners on stream
|
// reinit listeners on stream
|
||||||
photozone.html(photos_html);
|
photozone.html(photos_html);
|
||||||
Stream.initialize();
|
Stream.initialize();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue