Skip to content

Commit c9a43b0

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Re-add carousel control transition (#27277)
1 parent 59f1802 commit c9a43b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scss/_carousel.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,14 @@
116116
color: $carousel-control-color;
117117
text-align: center;
118118
opacity: $carousel-control-opacity;
119-
// We can't have a transition here because WebKit cancels the carousel
120-
// animation if you trip this while in the middle of another animation.
119+
@include transition($carousel-control-transition);
121120

122121
// Hover/focus state
123122
@include hover-focus {
124123
color: $carousel-control-color;
125124
text-decoration: none;
126125
outline: 0;
127-
opacity: .9;
126+
opacity: $carousel-control-hover-opacity;
128127
}
129128
}
130129
.carousel-control-prev {

scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,8 @@ $breadcrumb-border-radius: $border-radius !default;
965965
$carousel-control-color: $white !default;
966966
$carousel-control-width: 15% !default;
967967
$carousel-control-opacity: .5 !default;
968+
$carousel-control-hover-opacity: .9 !default;
969+
$carousel-control-transition: opacity .15s ease !default;
968970

969971
$carousel-indicator-width: 30px !default;
970972
$carousel-indicator-height: 3px !default;

0 commit comments

Comments
 (0)