jQuery .show('slide', { direction: 'right' }) doesn't work, but .show('slide') does

跟風遠走 提交于 2019-12-01 18:00:41

The effect of sliding in a specific direction doesn't come bundled with vanilla jQuery, but it's instead part of jQuery UI; including jQuery UI (in addition to jQuery) in your project should make it available. See also the documentation for the effect here.

You can try $('#newMenuItem').slideDown();

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!