vanillaSticky Make an element sticky How to use Include the JS file in your HEAD. <script src="js/vanilla-sticky.min.js"></script> new vanilla_sticky_launch(document.querySelectorAll('.sticky-element'));