Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Changing the twitter bootstrap progress bar and animation from horizontal position to vertical position</p> <p>========================================================================</p> <hr> <hr> <p>HTML</p> <hr> <pre><code>&lt;div class="progress progress-vertical progress-striped active progress-success"&gt; &lt;div class="bar" style="width: 40px;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="progress progress-vertical progress-striped active progress-danger"&gt; &lt;div class="bar" style="width: 40px;"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <hr> <p>CSS</p> <hr> <pre><code>.progress-vertical { position: relative; width: 40px; min-height: 240px; float: left; margin-right: 20px; } </code></pre> <hr> <p>Modify The Twitter bootstrap.css file as specified below:</p> <pre><code> @-webkit-keyframes progress-bar-stripes { from { background-position: 0 40px; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 0 40px; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 0 40px; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 0 40px; } } @keyframes progress-bar-stripes { from { background-position: 0 40px; } to { background-position: 0 0; } } </code></pre> <hr> <p>Change background-repeat to <strong>repeat-y</strong> and the degrees to <strong>0deg</strong>. so, that the animation renders vertically</p> <pre><code> .progress-danger .bar, .progress .bar-danger { background-repeat: repeat-y; } .progress-danger.progress-striped .bar, .progress-striped .bar-danger { background-color: #ee5f5b; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(0deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } </code></pre> <hr> <p>Follow the same with the other progress types like success,warning etc and achieve vertical twitter bootstrap progress bars and animations...!</p> <p>For you have any queries let me know I may help you..!</p> <p>If any one out there have any optimized solution than this then please let me know..!</p> <p>Don't forget to support this solution..! </p> <p>Enjoy!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload