/ Published in: jQuery
                    
                                        
Get menu tabs to slide up/down when hovering over them.
For some reason, it only starts working after you've hovered above a tab first.
I should find out why that is.
                For some reason, it only starts working after you've hovered above a tab first.
I should find out why that is.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$(document).ready(function() {
$('.menu .slide a').hover(function() { //the mouse in part
$(this).animate({ marginTop: '0px' }, 200); //can be replaced by padding or whatever
},
function() { //the mouse out part
$(this).animate({ marginTop: '10px' }, 300);
});
});
URL: http://medilab.be/index.php
Comments
 Subscribe to comments
                    Subscribe to comments
                
                