Skip to content

Instantly share code, notes, and snippets.

@rhettl
Created February 22, 2014 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhettl/9152835 to your computer and use it in GitHub Desktop.
Save rhettl/9152835 to your computer and use it in GitHub Desktop.
<style>
.designers .container {
position: fixed;
width: 100%;
}
</style>
<div class="designers">
<a>designers</a>
<div class="container">
<!-- stuff goes here -->
</div>
</div>
<script>
$('.designers').hover(function(){
var t = $(this), c = t.find('.container');
c.css({
top: t.offset().bottom
}).stop().slideDown();
}, function(){
var t = $(this), c = t.find('.container');
c.stop().slideUp();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment