简体   繁体   中英

jquery flyout “slide” effect seems to grow.

I am trying to copy the way the new menu on amazon flys out. I am using this for my menu currently:

http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/

As you can see here the menu seems to fly out AND grow at the same time instead of just fly out. Can anyone identify why it is also growing?

Because when you mouse over a link the menu is initially setting the width and height to zero for the sub-menu and then animating both parameters to the required size.

If you dont want the animation effect you can either use the fade in option or just show/hide.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM