Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2e423f

Browse files
committed
fixes twbs#25343 by mentioning how collapse animates in docs
1 parent abe44dc commit b2e423f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/4.0/components/collapse.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ group: components
66
toc: true
77
---
88

9+
## How it works
10+
11+
The collapse JavaScript plugin is used to show and hide content. Buttons or anchors are used as triggers that are mapped to specific elements you toggle. Collapsing an element will animate the `height` from it's current value to `0`. Given how CSS handles animations, you cannot use `padding` on a `.collapse` element. Instead, use the class as an independent wrapping element.
12+
913
## Example
1014

1115
Click the buttons below to show and hide another element via class changes:

0 commit comments

Comments
 (0)