var $sticky = $(".sticky-column").stickit({
scope: StickScope.Parent,
top: 20,
screenMinWidth: 980
});
$sticky.bind('stickit:end', function () {
$('.sticky-column').addClass('bottom-0');
});
$sticky.bind('stickit:stick', function () {
$('.sticky-column').removeClass('bottom-0');
});
https://github.com/emn178/jquery-stickit
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter