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

作者 : 小刺猬 本文共664个字,预计阅读时间需要2分钟 发布时间: 2020-07-30 共105人阅读

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

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

js代码

<script type="text/javascript" src="dist/canvi.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>
VIP免费 永久VIP免费

已有0人支付


刺猬源码 » 手机端左右侧边栏菜单js特效

刺猬QQ交流群号多少?
363432

发表评论