Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
slide-from-right: add unprefixed transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Jul 24, 2014
1 parent d83b11b commit ee82203
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions transitions/slide-from-right.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

<link href="core-transition-pages.html" rel="import">

<!--
Warning: This transition does not work well in combination with other transitions, because
it operates on the page rather than the page's children.
-->

<core-style id="slide-from-right">
polyfill-next-selector { content: ':host(.slide-from-right) > *'; }
:host(.slide-from-right) ::content > * {
Expand All @@ -19,16 +24,19 @@
polyfill-next-selector { content: ':host(.slide-from-right) > .core-selected ~ [animate]:not(.core-selected)'; }
:host(.slide-from-right) ::content > .core-selected ~ [animate]:not(.core-selected) {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}

polyfill-next-selector { content: ':host(.slide-from-right) > [animate]:not(.core-selected)'; }
:host(.slide-from-right) ::content > [animate]:not(.core-selected) {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}

polyfill-next-selector { content: ':host(.slide-from-right) > .core-selected'; }
:host(.slide-from-right) ::content > .core-selected {
-webkit-transform: none;
transform: none;
}
</core-style>

Expand Down

0 comments on commit ee82203

Please sign in to comment.