"Accordion Style : Demo2"
Bootstrap 3.0.0 Snippet by ntd187

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-6"> <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <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"> Section-1 </a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"> <div class="panel-body"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et facilisis mi. Nunc vitae pretium est, aliquet sagittis enim. Duis fringilla ipsum at velit gravida, ac luctus lorem euismod. Vivamus placerat dolor mi, vel feugiat dui egestas a. Fusce congue. </p> </div> </div> </div> <div class="panel panel-default"> <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"> Section-2 </a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo"> <div class="panel-body"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et facilisis mi. Nunc vitae pretium est, aliquet sagittis enim. Duis fringilla ipsum at velit gravida, ac luctus lorem euismod. Vivamus placerat dolor mi, vel feugiat dui egestas a. Fusce congue. </p> </div> </div> </div> <div class="panel panel-default"> <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"> Section-3 </a> </h4> </div> <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree"> <div class="panel-body"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et facilisis mi. Nunc vitae pretium est, aliquet sagittis enim. Duis fringilla ipsum at velit gravida, ac luctus lorem euismod. Vivamus placerat dolor mi, vel feugiat dui egestas a. Fusce congue. </p> </div> </div> </div> </div> </div> </div> </div>
a:hover, a:focus{ text-decoration: none; outline: none; } #accordion .panel{ border: none; box-shadow: none; border-radius: 0; margin-bottom: 15px; } #accordion .panel-heading{ padding: 0; border-radius:0; border: none; } #accordion .panel-title a{ display: block; padding: 14px 30px 14px 70px; font-size: 16px; font-weight: bold; color: #fff; background: #ef6145; position: relative; overflow: hidden; transition: all 0.5s ease 0s; } #accordion .panel-title a.collapsed{ background: #f8f8f8; color: #1e4276; } #accordion .panel-title a.collapsed:hover{ color: #ef6145; } #accordion .panel-title a:before{ content: ""; width: 55px; height: 100%; background-color: rgba(0, 0, 0, 0.1); position: absolute; top: 0; left: -13px; transform: skewX(-25deg); transition: all 0.5s ease 0s; } #accordion .panel-title a.collapsed:hover:before{ background: #d7573e; } #accordion .panel-title a:after{ content: "\f047"; font-family: FontAwesome; position: absolute; left: 10px; top: 50%; color: #fff; transform: translateY(-50%); } #accordion .panel-title a.collapsed:after{ color: #9f9f9f; } #accordion .panel-title a.collapsed:hover:after{ color: #fff; } #accordion .panel-body{ font-size: 14px; color: #5a3245; line-height: 25px; padding: 20px 15px 20px 40px; position: relative; border: none; transition: all 0.5s ease 0s; } #accordion .panel-body:before{ content: ""; width: 5px; height: 40px; background: #ef6145; position: absolute; top: 30px; left: 0; } #accordion .panel-body p{ margin-bottom: 0; }

Related: See More


Questions / Comments: