新年
快乐
手机端左右侧边栏菜单js特效

手机端左右侧边栏菜单js特效

手机端左右侧边栏菜单js特效插图

手机端左右侧边栏菜单js特效,点击滑动展开左侧菜单与右侧菜单代码,可以在同一个页面设置多个侧边栏菜单插件。

js代码

<script type="text/javascript" src="https://img.x22t.com/file/2020/04/25/5c42f90fbf12c1fe56a3fecd093608579604.js"></script>
<script>
var t = new Canvi({
		content: ".js-canvi-content",
		isDebug: !1,
		navbar: ".myCanvasNav",
		openButton: ".js-canvi-open-button--left",
		position: "left",
		pushContent: !1,
		speed: "0.2s",
		width: "100vw",
		responsiveWidths: [ {
			breakpoint: "600px",
			width: "280px"
		}, {
			breakpoint: "1280px",
			width: "320px"
		}, {
			breakpoint: "1600px",
			width: "380px"
		} ]
	})
</script>
<script type="text/javascript">
	var canviRight = new Canvi({
		content: ".js-canvi-content",
		navbar: ".js-canvi-navbar--right",
		openButton: ".js-canvi-open-button--right",
		position: "right"
	});
</script>

分享到 :
相关推荐

Leave a Reply

Your email address will not be published. Required fields are marked *