LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

CSS
body, html {
	margin:0px;
	padding:0px;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	height: 100%;
}
section {
	background: radial-gradient(#3D3D3D, #222);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}
.accordion-panel {
	padding:10px; 
	border-bottom:1px solid #999898; 
	background:#e5e5e5;
}
.accordion-panel p {
	line-height: 21px;
	color: #444;
	font-size: 13px;
	margin-top:0;
}
.accordion-toggle {
	margin: 40px auto; 
	width: 500px; 
	border: 1px solid #999898; 
	border-bottom:0;
}
.accordion-link {
	position:relative;
	color:#C7C8CA;
	font-size:14px;
	margin:0px;
	padding:10px 7px;
	cursor:pointer;
	background: #6c6e74;
	background: -moz-linear-gradient(top, #6c6e74 0%, #4b4d51 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6c6e74), color-stop(100%,#4b4d51));
	background: -webkit-linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
	background: -o-linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
	background: -ms-linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
	background: linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
	border-bottom: 1px solid #999898;
	box-sizing: border-box;
}
.accordion-link span {
	position: absolute; 
	background: #E2E2E2; 
	width: 1px; 
	height: 11px; 
	top: 13px; 
	right: 16px; 
	transition: all 0.3s; 
	-moz-transition: all 0.3s; 
	-webkit-transition: all 0.3s; 
	-o-transition: all 0.3s;
}
.accordion-link span:after {
	content: ''; 
	position: absolute; 
	background: #E2E2E2; 
	height: 1px; 
	width: 11px; 
	top: 5px; 
	left: -5px; 
	transition: all 0.3s; 
	-moz-transition: all 0.3s; 
	-webkit-transition: all 0.3s; 
	-o-transition: all 0.3s;
}
.accordion-on.accordion-link span:after {
	opacity:0;
}
.accordion-on.accordion-link span {
	transform: rotate(90deg);
}
JS
$(function(){
	$('.accordion-toggle .accordion-link').click(function(){
		if(!$(this).hasClass('accordion-on'))
		$('.accordion-toggle .accordion-link').removeClass('accordion-on');
		$(this).toggleClass('accordion-on');
		$(this).next(".accordion-panel").slideToggle().siblings(".accordion-panel:visible").slideToggle();
	})
});
Host Instantly Drag and Drop Website Builder

 

Term
Wed, 11/29/2017 - 11:20

Related Codes

Pen ID
Pen ID
Pen ID