Vanilla JavaScript Plugin

HC-Sticky  

Make selected elements, like menu or sidebar, sticky when scrolling down.

Plugin Website  Demo

Related plugins

Tiny Scrollbar  

A lightweight crossbrowser scrollbar plugin. Available as Vanilla JS and jQuery version.

Scrolly  

A fast and good looking scrollbar with touch support. Medium sized code base and major browsers support.

perfect-scrollbar  

Fully customizable and elegant scrollbars plugin with a rather large code base. Available as Vanilla JS and jQuery version.