-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add transitions to collapsible content #2753
Comments
Yeah animations would be cool. The current set of transition animations might not work as expected though since they use CSS transforms which don't actually modify the dimensions of what they animate. So if folks are expecting the content to actually push things down as it grows, we might need to have a different set of animations. |
Yeah, a good idea to consider. Can you add a link to this issue to the feature request wiki page here on github and we'll re-open if.when we decide to tackle this. |
It's added. Thanks |
Would be nice if this feature could be added. For now I have worked around this by writing the following code (http://jsfiddle.net/jerone/gsNzT/):
|
Thanks for the example code @jerone, I'm sure some people will want to know how to do that. The reason we don't animate collapsibles currently is that this is fairly intensive for a mobile device to do, especially if the collapsible is part of a longer page because it needs to re-flow for each step in the animation. I can see us adding this at some point when the devices are a bit better. |
It would be nice to have a data attribute to specify a transition on collapsible elements.
something like:
This would make the content slide up or down when opened or closed.
The text was updated successfully, but these errors were encountered: