To manipulate the position, You need to set the CSS position property of the element. For the similar work, JQuery animate() method is used to create custom animations.
animate()