"Scroll top Simple One"
Bootstrap 2.3.2 Snippet by tonichai

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Simple Jquery Scroll Top Button.</h2> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <div class="scrollup"></div> </div> </div>
.scrollup{ width:40px; height:40px; opacity:0.5; bottom:55px; position:fixed; right:95px; text-indent:-999px; background: url('http://i66.tinypic.com/6t3jba.png') no-repeat; display:none; cursor:pointer; }
$(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('.scrollup').fadeIn(); } else { $('.scrollup').fadeOut(); } }); $('.scrollup').click(function(){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); });

Related: See More


Questions / Comments: