How to Scroll up the page – scroll to top

CSS:

#scrollUp {
bottom: 20px;
right: 20px;
}

#scrollUp-active{
display: none;
}

#scrollUp {
bottom: 20px;
right: 20px;
height: 38px; /* Height of image */
width: 38px; /* Width of image */
background: url(img/top.png) no-repeat;
text-indent: -99999px;
}

Jquery :
(if already have then no need)

script type=”text/javascript” src=”js/jquery.scrollUp.min.js”></script
script>

/* scrollUp Minimum setup */
$(function () {
$.scrollUp();
});
/script

Image : top.png (u can use any one)

Leave a Reply

Your email address will not be published. Required fields are marked *