Skip to content

Instantly share code, notes, and snippets.

@kikmedia
Created April 16, 2013 19:53
Show Gist options
  • Save kikmedia/5399057 to your computer and use it in GitHub Desktop.
Save kikmedia/5399057 to your computer and use it in GitHub Desktop.
Smoothscroll, just place into Contao - Layout (Javascript-Code)
<script type="text/javascript">
//when the dom is ready
window.addEvent('domready',function() {
//smooooooth scrolling enabled
//new SmoothScroll({ options }, window);
new SmoothScroll({ duration:500, offset: {'x': 0, 'y': -40} }, window); //500 milliseconds to get there
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment