samtto
There's this too. Paste it in custom footer box in admin. Add CSS to make the Back to Top link look like a button or icon.
<script src="https://rawcdn.githack.com/tholman/elevator.js/a8332ecf7fa45cf51a177959359780e573205ede/elevator.min.js"></script>
<div class="elevator-button">Back to Top</div>
<script>
// Elevator script included on the page, already.
window.onload = function() {
var elevator = new Elevator({
element: document.querySelector('.elevator-button'),
duration: 1000 // milliseconds
});
}
</script>
I'll make this an extension real quick too. Be back later.
Update: ...and... bingo: https://discuss.flarum.org/d/29223-up-a-back-to-top-button 🙂