I´d like to show a submenu mouse over:
But without "slideUp" and "slideDown". The whole box should move. Eg http://panic.com/coda/ the hover effect/tooltip on "Download".
jQuery:
$(function(){
$('.sub-menu li').hover(
function(){
$('ul', this).stop().animate({opacity: '1', top: '50px'}, 800);
},
function() {
$('ul', this).stop().animate({opacity : '0', top: '20px'}, 300);
});
});
My actuel code is visible on jsfiddle http://jsfiddle.net/C4c46/1/
Thanks
This solution works great for me:
In action http://jsbin.com/iquwuc/6/edit#preview
$(document).ready(function(){
$('.sub-menu li#access ul').hide();
$('.sub-menu li#access').hover(function(){
$('.sub-menu li#access ul').stop().animate({opacity: "show", marginTop: "25"}, 500);
},
function() {
$('.sub-menu li ul').stop().animate({opacity: "hide", marginTop: "10"}, 500);
});
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.