html+左侧和侧栏框架,左侧滑动.html

dodou-移动框架

.popleft{

z-index: 100;

}

.popleft,.popleft .close-popleft,.popleft .content-popleft{

position: fixed;

bottom: 0;

left: 0;

right: 0;

height: 0;

width: 100%;

height: 100%;

z-index: 10;

-webkit-tap-highlight-color: transparent;

}

.popleft .close-popleft{

background-color: rgba(0, 0, 0, 1);

opacity: .7;

-webkit-transition: opacity .3s;

transition: opacity .3s;

}

.popleft .close-popleft span{

position: fixed;

right: 10%;

top: 50%;

-webkit-transform:translate(0,-50%);

width: 15px;

font-size: 14px;

line-height: 14px;

color: #B5B5B5;

}

.popleft .close-popleft i{

display: block;

width: 15px;

height: 15px;

margin: 10px 0 0;

background-repeat: no-repeat;

background-position: center center;

background-size: 100%;

background-image:url(images/return.png);

}

.popleft .content-popleft{

position: fixed;

top: 0;

left: 0;

z-index: 20;

overflow: hidden;

width: 80%;

background:#fff;

-webkit-box-shadow: 6px 0 10px 0 rgba(0,0,0,.4);

box-shadow: 6px 0 10px 0 rgba(0,0,0,.4);

-webkit-transition: -webkit-transform .5s cubic-bezier(.165,.84,.44,1);

transition: transform .5s cubic-bezier(.165,.84,.44,1);

transform:translateX(-100%);

}

显示左侧导航

点击此处返回

导航信息

//开启

function LeftOpen(){

$('.popleft').css({

"display":"block"

});

setTimeout(function(){

$('.content-popleft').css({

"transform":"translateX(0)"

});

},100);

}

//关闭

function LeftClose(){

$('.content-popleft').css({

"transform":"translateX(-100%)"

});

setTimeout(function(){

$('.popleft').css({

"display":"none"

});

},600);

};

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值