Streaming live at 10am (PST)

Headroom.js working script


#1

Continuing the discussion from Cannot get the jquery pluggin called "headroom.js"to work. Need help please!:

Don't know if you still need this solved but I looked everywhere and food a solution. Place the code in the body and give your nav or div navbar-fixed-top class and your good to go.

<style type="text/css">
.headroom {position: fixed;top: 0;left: 0;right: 0;transition: all .2s ease-in-out;}
.headroom--unpinned {top: -100px;}
.headroom--pinned {top: 0;}
</style>
<script type="text/javascript" src="https://rawgithub.com/WickyNilliams/headroom.js/master/dist/headroom.js"></script>
<script type="text/javascript" src="https://rawgithub.com/WickyNilliams/headroom.js/master/src/jQuery.headroom.js"></script>
<script type="text/javascript">
$(".navbar-fixed-top").headroom();
</script>


#2

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.