jquery左右滑动菜单
<div class="mini-container" style="position:relative;height:100%;">
<div class="left-collapse-trigger" title="隐藏侧边栏">
<i class="fa fa-angle-left fa-2x"></i>
</div>
<div class="bg-info min-condition condition-content" data-id="condition-info">
</div>
</div>
<style scoped>
.left-collapse .min-condition {
width: 0px !important;
overflow: hidden !important;
padding: 0px !important;
}
.left-collapse-trigger {
width: 40px;
height: 40px;
border-radius: 20px;
background: rgba(202, 202, 202, 0.4);
position: absolute;
left: 240px;
top: 45%;
z-index: 1000;
justify-content: center;
align-items: center;
color: #fff;
display:flex;
}
.left-collapse .left-collapse-trigger {
left:-10px;
}
.condition-content {
position: absolute;
transition: width 200ms;
z-index: 999;
left: 0px;
top: 0px;
bottom: 0px;
overflow: auto;
width: 260px;
padding: 15px;
background: #f7f5f5;
}
.main-content {
position: absolute;
left: 265px;
right: 0px;
top: 0px;
bottom: 0px;
}
</style>
define([], function () {
return function () {
this.show = function (module, root) {
root.load("telemetry/dataSearch/cesi.html", function () {
//侧边栏绑定
(function () {
$("body").on("click", ".left-collapse-trigger", function () {
$(this).attr("title", "展开侧边栏");
var $brother = $(this).parent();
var isExpand = true;
if ($brother.hasClass("left-collapse")) {//已经折叠
$brother.removeClass("left-collapse");
$(this).attr("title", "隐藏侧边栏");
$(this).children("i").removeClass("fa-angle-right").addClass("fa-angle-left");
}
else {
isExpand = false;
$brother.addClass("left-collapse");
$(this).attr("title", "展开侧边栏");
$(this).children("i").removeClass("fa-angle-left").addClass("fa-angle-right");
}
});
}());
});
}
};
});

jquery左右滑动菜单的更多相关文章
- jQuery水平滑动菜单
在线演示 本地下载
- jquery插件:点击拉出的右侧滑动菜单
就是一个停留在页面右侧的滑动菜单,点击可以拉出,带回调函数.宽高位置可以参数指定.插件代码如下: (jquery的路径请自己修改) (function($){ $.fn.sideSwitch = fu ...
- bootstrap-简单实用的垂直手风琴滑动菜单列表特效
前端: <html lang="zh"> <head> <meta charset="UTF-8"> <meta ht ...
- html5手机端的点击弹出侧边滑动菜单代码
效果预览:http://hovertree.com/texiao/html5/19/ 本效果适用于移动设备,可以使用手机等浏览效果. 源码下载:http://hovertree.com/h/bjaf/ ...
- 可控制导航下拉方向的jQuery下拉菜单代码
效果:http://hovertree.com/texiao/nav/1/ 代码如下: <!DOCTYPE html> <html> <head> <meta ...
- 19款绚丽实用的jQuery/CSS3侧边栏菜单
jQuery作为一款主流的JavaScript前端开发框架,深受广告开发者的亲睐,同时jQuery有着不计其数的插件,特别是菜单插件更为丰富,本文将要为大家介绍20个绚丽而实用的jQuery侧边栏菜单 ...
- 近20个绚丽实用的jQuery/CSS3侧边栏菜单(转载)
http://developer.51cto.com/art/201510/493530.htm 近20个绚丽实用的jQuery/CSS3侧边栏菜单 jQuery作为一款主流的JavaScript前端 ...
- js进阶 13-2 jquery动画滑动效果哪些注意事项
js进阶 13-2 jquery动画滑动效果哪些注意事项 一.总结 一句话总结:滑动里面这里up是隐藏,down是显示. 1.jquery动画默认的两个切换效果是什么(swing默认和linear的区 ...
- 基于jQuery左右滑动切换特效 附源码
分享一款基于脚jQuery左右滑动切换特效.这是一款鼠标点击左右箭头按钮图片滚动切换,鼠标移到图片上显示透明边框特效. 效果图如下: 废话不多说,代码奉上! html代码: <div ...
随机推荐
- SqlServer查询文件组被占用情况
在SqlServer中,删除一个文件组 alter database [xxxxx] remove filegroup FGMonthTurnIntroduceByMonth13 有时候会遇到如下报错 ...
- STL容器 成员函数 时间复杂度表
Sequence containers Associative containers Headers <vector> <deque> <list> <s ...
- Coursera 算法二 week 3 Baseball Elimination
这周的作业不需要自己写算法,只需要调用库函数就行,但是有些难以理解,因此用了不少时间. import edu.princeton.cs.algs4.FlowEdge; import edu.princ ...
- WARNING: The TCP backlog setting of 511.解决
redis启动警告问题:WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/so ...
- Spring学习记录(三)
一.AOP的整理总结 aop面向切面编程 横向重复代码,纵向抽取 动态代理 1.通过动态代理可以体现aop思想 2.为什么要哦用动态代理:对目标对象中的方法进行增强 spring aop开发 spri ...
- 【luogu题解】P1546 最短网络 Agri-Net
题目 约翰已经给他的农场安排了一条高速的网络线路,他想把这条线路共享给其他农场.为了用最小的消费,他想铺设最短的光纤去连接所有的农场. 你将得到一份各农场之间连接费用的列表,你必须找出能连接所有农场并 ...
- 进入docker容器并执行命令的的3中方法
进入docker容器并执行命令的的3中方法 docker exec nsenter docker attach "container" 建议使用nsenter, exec有 ...
- 【CodeBase】PHP转换编码,读写文件/网页内容的防乱码方法
核心代码: //检查字符串的编码 $charset=mb_detect_encoding($doc,['ASCII','GB2312','GBK','BIG5','UTF8'],TRUE); //字符 ...
- hprose 1.0(rpc 框架) - 执行时序图
- mysql索引详细描述与应用场景
索引的数据结构: (1)一般是B+tree:MySql使用最频繁的一个索引数据结构,数据结构以平衡树的形式来组织,因为是树型结构,所以更适合用来处理排序,范围查找等功能. (2)Hash:Hsah索引 ...