Scrolling Div with Page Lock

Even with firebug I cannot figure out how to do this:

look at the social div on the left side of the page. It follows smoothly: what css positioning did they use? I just read the absolute position, nothing more.

  • I tried the same thing, but it will not scroll on my page
  • Using jquery and animations makes it too pretty
  • modyfing css on each scroll looks rather strange, it got stuck for a millisecond and then moved How to get the same effect?

http://techcrunch.com/2011/08/04/sources-livingsocial-close-to-acquiring-turkish-daily-deals-site-grupfoni/

+5
source share
3 answers

- jquery, . , , , .

: http://jsfiddle.net/y3qV5/

: https://github.com/bigspotteddog/ScrollToFixed

:

$(document).ready(function() {
    $('#cart').scrollToFixed();
});
+6

:

.post-share-widget.floating {
    position: fixed;
    top: 68px;
}
.post-share-widget.pinnedTop {
    bottom: auto;
    position: absolute;
}

javascript "", "pinnedTop" .

0

All Articles