Created
August 16, 2021 06:43
-
-
Save zainaali/8168093a302d9e9858807832f81ba20b to your computer and use it in GitHub Desktop.
Scroll within a div with jQuery animate() function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scrollingdiv(parentid, id){ | |
$("#"+parentid).animate({scrollTop: $("#"+id).position().top}, 800, 'swing'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment