https://github.com/garand/sticky
<script> $(window).load(function(){ var height = $('#footer').height(); $(".sticky-form").sticky({ topSpacing: 90, bottomSpacing: height + 60 }); if(window.innerWidth < 550) { $(".sticky-form").unstick(); } }); </script>