Skip to content

Instantly share code, notes, and snippets.

@JonasEriksson
Created May 22, 2016 20:55
Show Gist options
  • Save JonasEriksson/4624eea3dd4b411eda9c0944616895b0 to your computer and use it in GitHub Desktop.
Save JonasEriksson/4624eea3dd4b411eda9c0944616895b0 to your computer and use it in GitHub Desktop.
Drop anywhere to have a small button to scroll back to the top. Add an ID named top-section to something close to the top as a target. Requires MDB code and INNOMEGA core.js
<cfoutput>
<div class="fixed-action-btn smooth-scroll" style="bottom: 45px; right: 25px;">
<a href="##top-section" class="btn-floating btn-large blue">
<i class="fa fa-arrow-up"></i>
</a>
</div>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment