-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebKit CSS3 carousel transforms for supported devices #13074
Changes from 5 commits
da044d9
8ab6746
bab63ab
4fa2d9e
d6d8e20
30d1236
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,25 @@ | |
&:extend(.img-responsive); | ||
line-height: 1; | ||
} | ||
|
||
// WebKit CSS3 transforms for supported devices | ||
@media all and (transform-3d), (-webkit-transform-3d) { | ||
.transition-transform(~'0.6s ease-in-out'); | ||
.backface-visibility(~'hidden'); | ||
.perspective(1000); | ||
&.next, &.active.right { | ||
.translate3d(100%, 0, 0); | ||
left: 0; | ||
} | ||
&.prev, &.active.left { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Separate lines for selectors here as well |
||
.translate3d(-100%, 0, 0); | ||
left: 0; | ||
} | ||
&.next.left, &.prev.right, &.active { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Separate lines for selectors here, too |
||
.translate3d(0, 0, 0); | ||
left: 0; | ||
} | ||
} | ||
} | ||
|
||
> .active, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a line break above this line, and break the selectors onto separate lines.