Create a dynamic \"Link to top of page\" with fade and positioned at some pixels of bottom when scrolls to this position


/ Published in: jQuery
Save to your folder(s)

Changes 340px with the page footer height.

CSS:

#top_link{
position:fixed;
bottom:20px;
right:50%;
margin-right:-600px;
overflow:hidden;
text-indent:-9999px;
background:url(../img/top.png) no-repeat 0 0;
display:block;
width:54px;
height:54px;
}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.