jquery animate position top code example
Example 1: jquery scroll to top of div animate
$("#yourDivID").animate({scrollTop:0}, "smooth");
Example 2: jquery change position animate
$("#Friends").animate({
top: "-=30px",
}, duration );