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
c56b10c1
Unverified
Commit
c56b10c1
authored
6 years ago
by
XhmikosR
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Offcanvas example: transition the transform (#28203)
This is more efficient than transitioning the `left` property.
parent
52e6ce45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
site/docs/4.2/examples/offcanvas/offcanvas.css
+5
-4
site/docs/4.2/examples/offcanvas/offcanvas.css
with
5 additions
and
4 deletions
+5
-4
site/docs/4.2/examples/offcanvas/offcanvas.css
+
5
-
4
View file @
c56b10c1
...
...
@@ -19,13 +19,14 @@ body {
overflow-y
:
auto
;
visibility
:
hidden
;
background-color
:
#343a40
;
transition
-timing-function
:
ease-in-out
;
transition
-duration
:
.3s
;
transition
-property
:
left
,
visibility
;
transition
:
visibility
.3s
ease-in-out
,
-webkit-transform
.3s
ease-in-out
;
transition
:
transform
.3s
ease-in-out
,
visibility
.3s
ease-in-out
;
transition
:
transform
.3s
ease-in-out
,
visibility
.3s
ease-in-out
,
-webkit-transform
.3s
ease-in-out
;
}
.offcanvas-collapse.open
{
left
:
0
;
visibility
:
visible
;
-webkit-transform
:
translateX
(
-100%
);
transform
:
translateX
(
-100%
);
}
}
...
...
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