File tree 1 file changed +14
-0
lines changed 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -952,6 +952,20 @@ const ComponentsPage = React.createClass({
952
952
953
953
< h3 > < Anchor id = "utilities-collapse" > Collapse</ Anchor > </ h3 >
954
954
< p > Add a collapse toggle animation to an element or component.</ p >
955
+ < div className = "bs-callout bs-callout-info" >
956
+ < h4 > Smoothing animations</ h4 >
957
+ < p >
958
+ If you're noticing choppy animations,
959
+ and the component that's being collapsed
960
+ has non-zero margin or padding,
961
+ try wrapping the contents
962
+ of your < code > <Collapse></ code >
963
+ { " " } inside a node with no margin or padding,
964
+ like the < code > <div></ code > in the example below.
965
+ This will allow the height to be computed properly,
966
+ so the animation can proceed smoothly.
967
+ </ p >
968
+ </ div >
955
969
< ReactPlayground codeText = { Samples . Collapse } />
956
970
957
971
< h4 > < Anchor id = "utilities-collapse-props" > Props</ Anchor > </ h4 >
You can’t perform that action at this time.
0 commit comments