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 ...
随机推荐
- The 12th Zhejiang Provincial Collegiate Programming Contest - I Earthstone Keeper浙江省赛
题目:http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=5501 思路:DFS,用了递归就溢出,所以可能得用非递归的. ...
- 更新KB915597补丁后导致“您的windows副本不是正版”的解决方案
更新KB915597补丁后导致“您的windows副本不是正版”的解决方案 解决方法: 运行cw.exe(https://pan.lanzou.com/i05ya8h),直至提示成功: 重新启动操作系 ...
- HDU3973 线段树 + 字符哈希
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3973 , 线段树 + 字符哈希,好题. 又学了一种新的哈希方法,hhhh~ 解法: 想法是用P进制的数 ...
- 解决spring配置文件没有提示的问题
我们使用eclipse编辑spring配置文件时,经常没有提示,而无从下手时. 现在我们就来解决没有提示的问题. 原因是因为eclipse中没有配置xsd文件.. 步骤一:把如下头文件拷贝到你的spr ...
- Luogu P5008 逛庭院
题目传送门 我校神仙出的神仙题 \(\%\%\%\) 30分 找出所有有入度的点,排序,选前\(k\)个点,好了,30分到手. #include<iostream> #include< ...
- Jquery-EasyUI combobox下拉框使用
制作一个json文件: <input data-options="url:'${pageContext.request.contextPath }/json/combobox_data ...
- 01_13_JSP编译指令
01_13_JSP编译指令 1. Directive Directive(编译指令)相当于在编译期间的命令 格式: <%@Directive 属性=”属性值”%> 常见的Directive ...
- 使用 RuPengGame游戏引擎包 建立游戏窗体 如鹏游戏引擎包下载地址 Thread Runnable 卖票实例
package com.swift; import com.rupeng.game.GameCore;//导入游戏引擎包 //实现Runnable接口 public class Game_RuPeng ...
- java实现单链表归并算法
public class LinkMergeSort {static int number=0;public static void main(String[] args) {int[] a = {1 ...
- 爬虫学习(八)——带cookie的网页进行爬取
# 前提:# # 通常,很多网站需要登录才能进行浏览,所以在爬取这些网站时,也需要进行登录,并拿取登录时的cookie# # 登录网页,服务器会给客户端一个牌子cookie# # 访问登录页面时,带着 ...