Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
96b49d78
Commit
96b49d78
authored
6 years ago
by
Martijn Cuppens
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix Edge bounce and restore original transition easing (#27279)
parent
f20e46e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/_carousel.scss
+6
-29
scss/_carousel.scss
scss/_variables.scss
+1
-1
scss/_variables.scss
with
7 additions
and
30 deletions
+7
-30
scss/_carousel.scss
+
6
-
29
View file @
96b49d78
...
...
@@ -23,55 +23,32 @@
position
:
relative
;
width
:
100%
;
overflow
:
hidden
;
@include
clearfix
();
}
.carousel-item
{
position
:
relative
;
display
:
none
;
align-items
:
center
;
float
:
left
;
width
:
100%
;
backface-visibility
:
hidden
;
perspective
:
1000px
;
margin-right
:
-100%
;
@include
transition
(
$carousel-transition
)
;
}
.carousel-item.active
,
.carousel-item-next
,
.carousel-item-prev
{
display
:
block
;
@include
transition
(
$carousel-transition
);
}
.carousel-item-next
,
.carousel-item-prev
{
position
:
absolute
;
top
:
0
;
}
.carousel-item-next.carousel-item-left
,
.carousel-item-prev.carousel-item-right
{
transform
:
translateX
(
0
);
@supports
(
transform-style
:
preserve-3d
)
{
transform
:
translate3d
(
0
,
0
,
0
);
}
}
.carousel-item-next
,
.carousel-item-next
:not
(
.carousel-item-left
),
.active.carousel-item-right
{
transform
:
translateX
(
100%
);
@supports
(
transform-style
:
preserve-3d
)
{
transform
:
translate3d
(
100%
,
0
,
0
);
}
}
.carousel-item-prev
,
.carousel-item-prev
:not
(
.carousel-item-right
)
,
.active.carousel-item-left
{
transform
:
translateX
(
-100%
);
@supports
(
transform-style
:
preserve-3d
)
{
transform
:
translate3d
(
-100%
,
0
,
0
);
}
}
...
...
This diff is collapsed.
Click to expand it.
scss/_variables.scss
+
1
-
1
View file @
96b49d78
...
...
@@ -1007,7 +1007,7 @@ $carousel-control-prev-icon-bg: str-replace(url("data:image/svg+xml,%3csvg
$carousel-control-next-icon-bg
:
str-replace
(
url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='
#{
$carousel-control-color
}
' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e")
,
"#"
,
"%23"
)
!
default
;
$carousel-transition-duration
:
.6s
!
default
;
$carousel-transition
:
transform
$carousel-transition-duration
ease
!
default
;
// Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)
$carousel-transition
:
transform
$carousel-transition-duration
ease
-in-out
!
default
;
// Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)
// Close
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment