Team:Heidelberg/Templates/Footer-Nav
From 2013.igem.org
(Difference between revisions)
Nils.kurzawa (Talk | contribs) m |
m |
||
Line 7: | Line 7: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $('#nav > div').hover( | |
- | + | function () { | |
- | + | var $this = $(this); | |
- | + | $this.find('img').stop().animate({ | |
- | + | 'width' :'250px', | |
- | + | 'height' :'250px', | |
- | + | 'top' :'0 px', | |
- | + | 'left' :'0 px', | |
- | + | 'opacity' :'3.0', | |
- | + | },200,'easeOutBack',function(){ | |
- | + | $(this).parent().find('ul').fadeIn(100); | |
- | + | }); | |
- | + | $this.find('img').css('z-index', '1'); | |
- | + | $this.find('a:first,h2,ul').addClass('active'); | |
- | + | }, | |
- | + | function () { | |
- | + | var $this = $(this); | |
- | + | $this.find('ul').fadeOut(500); | |
- | + | $this.find('img').stop().animate({ | |
- | + | 'width' :'52px', | |
- | + | 'height' :'52px', | |
- | + | 'top' :'0px', | |
- | + | 'left' :'0px', | |
- | + | 'opacity' :'0', | |
- | + | },1000,'easeOutBack'); | |
- | + | $this.find('a:first,h2,ul').removeClass('active'); | |
- | + | } | |
- | + | ); | |
- | + | $('.btn-popover').popover({ | |
- | + | 'html' : true, | |
- | + | 'placement' : 'left', | |
- | + | 'container' : 'body', | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 01:33, 5 October 2013