$(document).ready(function() {
$('.up img').on('click', function(){
$('.content').animate({top: '0'}, 1500, 'swing');
})
});
This didn’t animate me to the top of the content which leaves me kind of confused really…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
does the element have the top property set?
you could get the elements position using scrollTop()
replace the SOMETHING id with the element you want to scroll to