<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>

<section class="wrp-faq">
  <h2> Bootstrap 3 Faq demo</h2>
  <div class="container">
    <div class="panel-group" id="accordion">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h4 class="panel-title">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapse1">
            Lorem ipsum dolor sit amet, consectetur. <i class="fa fa-angle-up"></i></a>
          </h4>
        </div>
        <div id="collapse1" class="panel-collapse collapse in">
          <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
          sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
          commodo consequat.</div>
        </div>
      </div>
      <div class="panel panel-default">
        <div class="panel-heading">
          <h4 class="panel-title">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapse2">
            Incididunt ut labore et dolore magna aliqua. <i class="fa fa-angle-down"></i></a>
          </h4>
        </div>
        <div id="collapse2" class="panel-collapse collapse">
          <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
          sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
          commodo consequat.</div>
        </div>
      </div>
      <div class="panel panel-default">
        <div class="panel-heading">
          <h4 class="panel-title">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapse3">
            Ut enim ad minim veniam, quis <i class="fa fa-angle-down"></i></a>
          </h4>
        </div>
        <div id="collapse3" class="panel-collapse collapse">
          <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
          sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
          commodo consequat.</div>
        </div>
      </div>
    </div>
  </div>
</section>
*{
  margin: 0px;
  padding: 0px;
  outline: none;
  text-decoration:none;
}
#accordion .panel-title a {
    outline: none;
    text-align: left;
    font-weight: 600;
    font-size: 21px;
    position: relative;
    padding: 17px 20px 15px 20px;
    display: inline-block;
    width: 100%;
}
#accordion .panel-title, .panel-heading{
  padding: 0;
}
#accordion .panel-title a:hover, #accordion .panel-title a:focus {
    text-decoration: none;
}
#accordion .panel-title i.fa {
    float: right;
    transition: all 0.5s;
    position: absolute;
    right: 20px;
    font-size: 32px;
}
.wrp-faq h2 {
  text-align: center;
  font-size: 50px;
  padding: 48px 10px;
}
$(document).ready(function(){
    $('.panel-title > a').click(function() {
    $(this).find('i').toggleClass('fa-angle-up fa-angle-down')
     .closest('panel').siblings('panel')
     .find('i')
     .removeClass('fa-angle-down').addClass('fa-angle-up');
    });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.