• 资源分类:导航筛选
  • 最后更新:2011-11-11
  • 下载积分:4【升级会员送积分】
  • 积分说明:【上传资源赚积分】
  • 收藏
    资源语言: 中文

    jQuery多层卡片堆叠展示导航菜单切换特效是一款点击汉堡包按钮,各个子菜单会以卡片的形式堆叠排列在窗口中,点击相应的子菜单就会切换到相应的页面上的动画导航菜单代码。


    js代码

    <script src="https://img.x22t.com/file/2020/04/25/aef4a62d765b8af142cf2c96f71fa60e4428.js?t=1"></script>
    <script src="https://img.x22t.com/file/2020/04/25/38a328155bd048d253a3e39a20a3b5a12770.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    	var $demo = $(".demo");
    	var numOfSections = $(".demo__section").length;
    	$(document).on("click", ".demo__menu-btn", function () {
    		$demo.addClass("menu-active");
    	});
    	$(document).on("click", ".demo__close-menu", function () {
    		$demo.removeClass("menu-active");
    	});
    	$(document).on("click", ".demo.menu-active .demo__section", function () {
    		var $section = $(this);
    		var index = +$section.data("section");
    		$(".demo__section.active").removeClass("active");
    		$(".demo__section.inactive").removeClass("inactive");
    		$section.addClass("active");
    		$demo.removeClass("menu-active");
    		for (var i = index + 1; i <= numOfSections; i++) {
    			if (window.CP.shouldStopExecution(1)) {
    				break;
    			}
    			$(".demo__section[data-section=" + i + "]").addClass("inactive");
    		}
    		window.CP.exitedLoop(1);
    	});
    });
    </script>
    

    提示:
    1、资源共享网(www.08i8.com)导航筛选资源《jQuery卡片堆叠展示导航菜单切换特效》仅供研究学习请勿商用!
    2、如果发现本资源违法或侵权请【报告管理员】
    3、您所看到的所有资源都是网友分享,资源共享网(www.08i8.com)无法保证都能正常下载使用,
    4、如果您发现资源无法下载或无法使用请【报告管理员】,管理员会联系资源发布者补充新资源!
    5、如果暂时无法补充新资源,【只退积分!不退款!
    6、关注微信公众号:《国资互联联盟》 不迷路!

    标签

    与《jQuery卡片堆叠展示导航菜单切换特效》相关的《插件》

    admin
    admin

    0

    0

    0

    ( 此人很懒并没有留下什么~~ )

    首页

    栏目

    搜索

    会员