Skip to content

Instantly share code, notes, and snippets.

@philcon93
Last active September 29, 2016 22:44
Show Gist options
  • Save philcon93/99d8116799e1546c909bee95d16a52ee to your computer and use it in GitHub Desktop.
Save philcon93/99d8116799e1546c909bee95d16a52ee to your computer and use it in GitHub Desktop.
Add fixed button plugin
<!-- Stylesheets and js plugin -->
<link rel="stylesheet" type="text/css" href="[%ntheme_asset%]js/plugins/ap-scroll-top-master/css/ap-scroll-top.css[%/ntheme_asset%]" media="all"/>
<script type="text/javascript" src="[%ntheme_asset%]js/plugins/ap-scroll-top-master/js/ap-scroll-top.js[%/ntheme_asset%]"></script>
$.apScrollTop({
enabled: true,
visibilityTrigger: 100,
visibilityFadeSpeed: 150,
scrollSpeed: 250,
position: 'right bottom'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment