Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter bootstrap - Add animation / transition effect to tabbed navigation
    text
    copied!<p>i have a basic tabbed navigation using the example from the bootstrap site. how can i add an animation effect (fade in and out) so when each tab is clicked the new content is faded in?</p> <pre><code> &lt;!-- i have a basic tabbed navigation using the example from the bootstrap site. how can i add an animation effect (fade in and out) so when each tab is clicked the new content is faded in? --&gt; &lt;div class="tabbable"&gt; &lt;ul class="nav nav-tabs nav-stacked span3"&gt; &lt;li class="active"&gt; &lt;a href="#myDashboardNav" data-toggle="tab"&gt; &lt;i class="icon-align-justify"&gt;&lt;/i&gt; My dashboard &lt;span class="badge badge-important"&gt;20%&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;li id="myfeed"&gt; &lt;a href="#myFeedNav" data-toggle="tab"&gt; &lt;i class="icon-list-alt"&gt;&lt;/i&gt; My feed &lt;span class="badge badge-important"&gt;6&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;li id="notifications"&gt; &lt;a href="#notificationsNav" data-toggle="tab"&gt; &lt;i class="icon-time"&gt;&lt;/i&gt; Notifications &lt;span class="badge badge-important"&gt;9&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;div class="tab-content span8"&gt; &lt;div class="tab-pane well active" id="myDashboardNav" style="height: 330px"&gt;Content1 &lt;/div&gt; &lt;div class="tab-pane well" id="myFeedNav" style="height: 330px"&gt;Content2 &lt;/div&gt; &lt;div class="tab-pane well" id="notificationsNav" style="height: 330px"&gt;Content3 &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
 

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