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

Commit

Permalink
Merge pull request #3 from sfeast/master
Browse files Browse the repository at this point in the history
Adding polyfill selectors for slide-from-right transition
  • Loading branch information
Yvonne Yip committed Jul 3, 2014
2 parents 1faae30 + 37435be commit 60d77ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transitions/slide-from-right.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@
<link href="core-transition-pages.html" rel="import">

<core-style id="slide-from-right">
polyfill-next-selector { content: ':host(.slide-from-right) > *'; }
:host(.slide-from-right) ::content > * {
-webkit-transition: -webkit-transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
transition: transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
}

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%);
}

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%);
}

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

0 comments on commit 60d77ad

Please sign in to comment.