Aquí tienes un ejemplo solo copialo tal cual y haz pruebas.
Código HTML:
Ver original<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://markgoodyear.com/labs/scrollup/js/jquery.scrollUp.js?1.1"></script> $(function () {
$.scrollUp({
scrollName: 'scrollUp', // Element ID
topDistance: '300', // Distance from top before showing element (px)
topSpeed: 300, // Speed back to top (ms)
animation: 'fade', // Fade, slide, none
animationInSpeed: 200, // Animation in speed (ms)
animationOutSpeed: 200, // Animation out speed (ms)
scrollText: 'Scroll to top', // Text for element
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
});
});
<div style="height:3000px;"> <div id="scrollUp" style="width:100px;height:100px;background-color:#000;color:#fff;">Scroll
</div>