You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tab/docs/tab.demo.html
+32-7Lines changed: 32 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,14 @@ <h4>ngModel binding</h4>
38
38
<p>Please use the helper attribute <code>bsActivePane</code> instead.</p>
39
39
</div>
40
40
41
-
<divclass="callout callout-info">
41
+
<divclass="callout callout-info row">
42
42
<h4>Custom animations</h4>
43
-
<p>Pane animation is done with the <code>active</code> class and requires custom CSS.</p>
44
-
<preclass="bs-exemple-code">
45
-
<codeclass="css" highlight-block>
43
+
<p>Pane animation is done with the <code>active</code> class and requires custom CSS. You can change the default <code>am-fade</code> animation class by including the <code>animation</code> option.</p>
44
+
<p>Here is a sample definition for the default <code>am-fade</code> animation class:</p>
45
+
<divclass="col-md-5">
46
+
<p>SASS:</p>
47
+
<preclass="bs-exemple-code">
48
+
<codeclass="css" highlight-block>
46
49
.tab-pane.am-fade {
47
50
animation-duration: .3s;
48
51
animation-timing-function: ease;
@@ -56,8 +59,30 @@ <h4>Custom animations</h4>
56
59
animation-name: fadeIn;
57
60
}
58
61
}
59
-
</code>
60
-
</pre>
62
+
</code>
63
+
</pre>
64
+
</div>
65
+
<divclass="col-md-5 col-md-offset-1">
66
+
<p>CSS:</p>
67
+
<preclass="bs-exemple-code">
68
+
<codeclass="css" highlight-block>
69
+
.tab-pane.am-fade {
70
+
animation-duration: .3s;
71
+
animation-timing-function: ease;
72
+
animation-fill-mode: backwards;
73
+
opacity: 1;
74
+
}
75
+
76
+
.tab-pane.am-fade.active-remove {
77
+
display: none !important;
78
+
}
79
+
80
+
.tab-pane.am-fade.active-add {
81
+
animation-name: fadeIn;
82
+
}
83
+
</code>
84
+
</pre>
85
+
</div>
61
86
</div>
62
87
63
88
<h3>Options</h3>
@@ -78,7 +103,7 @@ <h3>Options</h3>
78
103
<td>animation</td>
79
104
<td>string</td>
80
105
<td>am-fade</td>
81
-
<td>apply a CSS animation to the popover with <code>ngAnimate</code></td>
106
+
<td>apply a CSS animation to tab panes with <code>ngAnimate</code></td>
0 commit comments