Sticky Sidebar ⬆⬇ is a pure JavaScript plugin for making smart and high performance sticky sidebar, works with sidebar if it’s taller or shorter than the viewport, integrated with resize sensor to re-calculate the dimensions automatically when the size of sidebar or its container is changed, supports jQuery/Zepto and compatible with Firefox, Chrome, Safari, and IE9+.
<div id="main-content" class="main">
<div id="sidebar" class="sidebar">
<div class="sidebar__inner">
<!-- Content goes here -->
</div>
</div>
<div id="content" class="content">
<!-- Content goes here -->
</div>
</div>
<script type="text/javascript">
var sidebar = new StickySidebar('#sidebar', {
containerSelector: '#main-content',
innerWrapperSelector: '.sidebar__inner',
topSpacing: 20,
bottomSpacing: 20
});
</script>
Can I haz ?
* <sticky-aside>