jQuery Bootstrap扁平垂直手风琴特效



96 383 128



特效描述: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全景 360度全景 h5文字动画 h5文字边框动画 html5文字动画 html5文字边框动画 文字滚动 文字无缝滚动 文字间歇滚动 文字滑动 文字滑块 文字切换 文字选项卡 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 收缩展开 展开收缩 收缩 展开 图片文字 文字导航菜单 文字导航 文字菜单 文字 文字插件 文字收缩展开 文字收缩 文字展开 滑动手风琴 文字列表 手风琴 水平手风琴 垂直手风琴 图片手风琴 文字手风琴 手风琴插件

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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