Skip to content

Commit

Permalink
Carousel indicators transition (#26902)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and mdo committed Jul 25, 2018
1 parent bbee414 commit 4f92667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scss/_carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@
margin-left: $carousel-indicator-spacer;
text-indent: -999px;
cursor: pointer;
background-color: rgba($carousel-indicator-active-bg, .5);
background-color: $carousel-indicator-active-bg;
opacity: .5;
@include transition($carousel-indicator-transition);

// Use pseudo classes to increase the hit area by 10px on top and bottom.
&::before {
Expand All @@ -214,7 +216,7 @@
}

.active {
background-color: $carousel-indicator-active-bg;
opacity: 1;
}
}

Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ $carousel-indicator-width: 30px !default;
$carousel-indicator-height: 3px !default;
$carousel-indicator-spacer: 3px !default;
$carousel-indicator-active-bg: $white !default;
$carousel-indicator-transition: opacity .6s ease !default;

$carousel-caption-width: 70% !default;
$carousel-caption-color: $white !default;
Expand Down

0 comments on commit 4f92667

Please sign in to comment.