Created
January 4, 2019 14:33
-
-
Save DmmitryIs/a2a96df2b1814b140463512cc4795800 to your computer and use it in GitHub Desktop.
Scroll to element with jQuery
This file contains 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
$([document.documentElement, document.body]).animate({ | |
scrollTop: $('#needleElement').offset().top | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment