Sticky-js is a library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website. It's also responsive.
stickypositionscrolljavascript
https://rgalus.github.io/sticky-js/