Jquery切换(' slide')效果很奇怪

时间:2018-03-08 13:11:25

标签: jquery html css

今天,我在我自己的网站上工作,并尝试在左侧制作固定菜单。 当我点击它时,它会显示一个子菜单。 除此之外,动画非常难看......

我希望我的菜单看起来像是从菜单左侧看到的。 我的.menu幻影是生涩的,我希望它顺利。

(然后我的.content块也会向右移动但我稍后会这样做。)

这是我的代码:



ViewController

 ----- Link is set
 ----- View did load
true
https://google.com
https://google.com

$(document).ready(function(){

	/* Submenu - Toggle menu-right */
	$(".menu .menu-left").click(function() {
		$(this).parents().find(".menu-right").toggle('slide');
    $(this).parents().find(".content").toggleClass('padding');
  });
  
});




0 个答案:

没有答案