html 移动菜单切换按钮| http://codepen.io/agragregra/pen/bEbbmZ
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 移动菜单切换按钮| http://codepen.io/agragregra/pen/bEbbmZ相关的知识,希望对你有一定的参考价值。
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
span:after, span:before
content: ""
position: absolute
left: 0
top: 9px
span:after
top: 18px
span
position: relative
display: block
span, span:after, span:before
width: 100%
height: 2px
background-color: #fff
transition: all 0.3s
backface-visibility: hidden
border-radius: 2px
&.on span
background-color: transparent
&.on span:before
transform: rotate(45deg) translate(-1px, 0px)
&.on span:after
transform: rotate(-45deg) translate(6px, -7px)
<!-- jQuery -->
$(".toggle-mnu").click(function() {
$(this).toggleClass("on");
$(".main-mnu").slideToggle();
return false;
});
以上是关于html 移动菜单切换按钮| http://codepen.io/agragregra/pen/bEbbmZ的主要内容,如果未能解决你的问题,请参考以下文章
html 移动菜单切换按钮| http://codepen.io/agragregra/pen/bEbbmZ
向移动视图上的引导导航栏切换按钮添加文本提示
如何用KMS激活office2013
office2021怎么打开
office outlook默认数据库文件保存在哪里
office2016怎么激活?