0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00
Bootstrap/scss/_animation.scss
Starsam80 b226766b62 Remove lots of duplication + minor cleanup (#21238)
* Remove comment that duplicated some code
* Use transition mixin whenever possible
* Create a new function to reduce duplication
* Use the new `breakpoint-infix` method
2016-11-28 13:23:59 -08:00

37 lines
411 B
SCSS

.fade {
opacity: 0;
@include transition(opacity .15s linear);
&.active {
opacity: 1;
}
}
.collapse {
display: none;
&.active {
display: block;
}
}
tr {
&.collapse.active {
display: table-row;
}
}
tbody {
&.collapse.active {
display: table-row-group;
}
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
@include transition(height .35s ease);
}