jQuery Bootstrap扁平垂直手风琴特效



147 586 196



特效描述:jQuery Bootstrap扁平 垂直手风琴特效,jQuery Bootstrap扁平垂直手风琴特效

代码结构

1. 引入CSS

<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<link rel="stylesheet" type="text/css" href="css/zzsc-demo.css">
<link rel="stylesheet" href="css/style.css">

2. 引入JS

<script src="js/jquery-2.1.1.min.js " type="text/javascript"></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script>

3. HTML代码

<section class="zzsc-container">
	<div class="container">
	  <div class="col-md-6 col-sm-6">
		<h3>Default collapse with scaling icon</h3>
		<div class="panel-group wrap" id="bs-collapse">
		  <div class="panel">
			<div class="panel-heading">
			  <h4 class="panel-title">
			<a data-toggle="collapse" data-parent="#" href="#one">
			  Collapse item #1
			</a>
		  </h4>
			</div>
			<div id="one" class="panel-collapse collapse">
			  <div class="panel-body">
				Where now are the horse and the rider? Where is the horn that was blowing? Where is the helm and the hauberk, and the bright hair flowing?
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		  <div class="panel">
			<div class="panel-heading">
			  <h4 class="panel-title">
			<a data-toggle="collapse" data-parent="#" href="#two">
			 Collapse item #2
			</a>
		  </h4>
			</div>
			<div id="two" class="panel-collapse collapse">
			  <div class="panel-body">
				Where is the harp on the harpstring, and the red fire glowing? Where is the spring and the harvest and the tall corn growing?
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		  <div class="panel">
			<div class="panel-heading">
			  <h4 class="panel-title">
			<a data-toggle="collapse" data-parent="#" href="#three">
			  Collapse item #3
			</a>
		  </h4>
			</div>
			<div id="three" class="panel-collapse collapse">
			  <div class="panel-body">
				The days have gone down in the West behind the hills into shadow. Who shall gather the smoke of the deadwood burning, Or behold the flowing years from the Sea returning?
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		  <div class="panel">
			<div class="panel-heading">
			  <h4 class="panel-title">
			<a data-toggle="collapse" data-parent="#" href="#four">
			 Collapse item #4
			</a>
		  </h4>
			</div>
			<div id="four" class="panel-collapse collapse in">
			  <div class="panel-body">
				They have passed like rain on the mountain, like a wind in the meadow; The days have gone down in the West behind the hills into shadow.
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		</div>
		<!-- end of #bs-collapse  -->
	  </div>
	  <div class="col-md-6 col-sm-6">
		<h3>Accordion collapse with rotating icon</h3>
		<div class="panel-group wrap" id="accordion" role="tablist" aria-multiselectable="true">
		  <div class="panel">
			<div class="panel-heading" role="tab" id="headingOne">
			  <h4 class="panel-title">
			<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
			  Collapsible item #1
			</a>
		  </h4>
			</div>
			<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
			  <div class="panel-body">
				Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch.
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		  <div class="panel">
			<div class="panel-heading" role="tab" id="headingTwo">
			  <h4 class="panel-title">
			<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
			  Collapsible item #2
			</a>
		  </h4>
			</div>
			<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
			  <div class="panel-body">
				Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch.
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		  <div class="panel">
			<div class="panel-heading" role="tab" id="headingThree">
			  <h4 class="panel-title">
			<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
			  Collapsible item #3
			</a>
		  </h4>
			</div>
			<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
			  <div class="panel-body">
				Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch.
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		  <div class="panel">
			<div class="panel-heading" role="tab" id="headingFour">
			  <h4 class="panel-title">
			<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
			  Collapsible item #4
			</a>
		  </h4>
			</div>
			<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
			  <div class="panel-body">
				Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch.
			  </div>
			</div>
		  </div>
		  <!-- end of panel -->
		</div>
		<!-- end of #accordion -->
	  </div>
	  <!-- end of wrap -->
	</div>
	<!-- end of container -->
</section>
<script type="text/javascript">
	$(document).ready(function() {
	  $('.collapse.in').prev('.panel-heading').addClass('active');
	  $('#accordion, #bs-collapse')
		.on('show.bs.collapse', function(a) {
		  $(a.target).prev('.panel-heading').addClass('active');
		})
		.on('hide.bs.collapse', function(a) {
		  $(a.target).prev('.panel-heading').removeClass('active');
		});
	});
</script>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动导航菜单 导航切换 收缩导航菜单 文字标签 滑动选项卡切换 文字收缩展开 彩色文字 图片滑动 图片切换 图片收缩展开 文字闪烁 文字滑动 文字切换 打字机 滑动手风琴 背景切换 文字列表 滑动星星打分 手风琴 文字弹幕 选项卡自动切换 文字高亮 视频切换 列表切换 渐隐切换 全屏切换 切换按钮 缩放切换 文字叠加 滑动滑过 滚动切换 滑动选项卡切换 文字拖动 文字提示框 文字收缩展开 文字放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 文字延迟加载 360全景 html5文字动画 文字滚动 文字滑动 文字切换 选项卡切换 滑动手风琴 收缩收起展开 图片文字 文字导航菜单 文字

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到