質問

だから私はBoostrapで5つの進行状況バーを持っています。すべてアニメーション(ページをロードするとき)がありますが、このコード

を垂直にしたいと思います。
<div class="progress progress-striped active">
    <div class="progress">
        <div class="progress-bar six-sec-ease-in-out" aria-valuetransitiongoal="20"></div>
    </div>
</div>

<div class="progress progress-striped active">
    <div class="progress">
        <div class="progress-bar progress-bar-info six-sec-ease-in-out" aria-valuetransitiongoal="40"></div>
    </div>
</div>
.

これはカスタムBoostrapコード

です。
.progress .progress-bar.six-sec-ease-in-out {
    -webkit-transition: width 6s ease-in-out;
    -moz-transition: width 6s ease-in-out;
    -ms-transition: width 6s ease-in-out;
    -o-transition: width 6s ease-in-out;
    transition: width 6s ease-in-out;             
 }
.

とアニメーションの場合は

<script type="text/javascript">
  $(window).ready(function(e){
     $.each($('div.progress-bar'),function(){
       $(this).css('width', $(this).attr('aria-valuetransitiongoal')+'%');
     });
   });
</script>
.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top