Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
Scroll to position after page load
<!-- add these lines to the HEAD of the page — before </head> -->
<script src="" type="text/javascript" charset="utf-8"></script>
<script src="" type="text/javascript"></script>
<!-- add these lines to the very end of the BODY of the page — before </body> -->
<script type="text/javascript">
var target ='?').last();
if(target && $(target)){
Effect.ScrollTo(target, {offset: 200, duration: 0.4});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment