I've implemented this jQuery animation:
$('.menu1').stop().animate({left: "29%", top: '2%', width:'40%', fontSize: '60%'}, 3000);
$('.menu2').stop().animate({left: "44%", top: '2%', width:'40%', fontSize: '60%'}, 3000);
$('.menu3').stop().animate({left: "59%", top: '2%',width:'40%', fontSize: '60%'}, 3000);
$('.menu4').stop().animate({left: "74%", top: '2%', width:'40%', fontSize: '60%'}, 3000);
$('.menu1').find('.img1').attr("src", "images/botom1.png");
$('.csoon').fadeToggle( 6000 );
Additionally, here's the hover function:
$('.menu1').hover(function(){
$('.menu1').stop(true, true).css('font-size','+=5%');
}, function(){
$('.menu1').stop(true, true).css('font-size','-=5%');
});
A challenge arises when hovering during the animation, causing font-size changes. Is there a way to disable this?
View the code in JSFiddle: https://jsfiddle.net/jy57u25u/