$('#categories').hover(
function() {
$(this).find('#menulist').show();
},
function() {
$(this).find('#menulist').hide();
}
)
What else should i add inside the hover function to change the border-radius property?
try this:
$('#categories').hover(
function() {
$('#menulist').show();
$('#menulist').css('border-radius', '25px');
},
function() {
$('#menulist').hide();
}
)
animateCorners = function(event) {
r = (event.type == 'mouseenter' ? 40 : 0);
$(this).css({
'border-top-left-radius': r,
'border-top-right-radius': r,
'border-bottom-right-radius': r,
'border-bottom-left-radius': r
});
}
$('div').hover(animateCorners, animateCorners);
jsFiddle example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With