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.
http://techcrunch.com/2011/08/04/sources-livingsocial-close-to-acquiring-turkish-daily-deals-site-grupfoni/
- jquery, . , , , .
: http://jsfiddle.net/y3qV5/
: https://github.com/bigspotteddog/ScrollToFixed
:
$(document).ready(function() { $('#cart').scrollToFixed(); });
, jQuery CSS. ...
http://jqueryfordesigners.com/fixed-floating-elements/
.post-share-widget.floating { position: fixed; top: 68px; } .post-share-widget.pinnedTop { bottom: auto; position: absolute; }
javascript "", "pinnedTop" .