Skip to content

Commit

Permalink
fixes #25343 by mentioning how collapse animates in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Apr 1, 2018
1 parent abe44dc commit b2e423f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/4.0/components/collapse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ group: components
toc: true
---

## How it works

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.

## Example

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

0 comments on commit b2e423f

Please sign in to comment.