html5 - jQuery Pin It Impementation -
i trying make navigation bar on site:
contemporarypool.biz "sticky" using jquery.pin. however, i'm new javascript world, , not having success implementing script. have javascript called in header, i'm not sure how call navigation bar.
to pin element you're suppose use this: $(".pinned").pin()
does class go .pin is? include code?
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script type="text/javascript"> jquery(document).ready(function(){ jquery(".nav-content").pin(); }); </script>
where ".nav-content” class apply pin to.
you can put anywhere after jquery file included.
Comments
Post a Comment