OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 6 Code distributed by Google as part of the polymer project is also |
| 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 8 --> |
| 9 |
| 10 <link href="core-transition-pages.html" rel="import"> |
| 11 |
| 12 <!-- |
| 13 Warning: This transition does not work well in combination with other transition
s, because |
| 14 it operates on the page rather than the page's children. |
| 15 --> |
| 16 |
| 17 <core-style id="slide-from-right"> |
| 18 polyfill-next-selector { content: ':host(.slide-from-right) > *'; } |
| 19 :host(.slide-from-right) ::content > * { |
| 20 -webkit-transition: -webkit-transform {{g.transitions.slideDuration || g.tra
nsitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); |
| 21 transition: transform {{g.transitions.slideDuration || g.transitions.duratio
n}} cubic-bezier(0.4, 0, 0.2, 1); |
| 22 } |
| 23 |
| 24 polyfill-next-selector { content: ':host(.slide-from-right) > .core-selected ~
[animate]:not(.core-selected)'; } |
| 25 :host(.slide-from-right) ::content > .core-selected ~ [animate]:not(.core-sele
cted) { |
| 26 -webkit-transform: translateX(100%); |
| 27 transform: translateX(100%); |
| 28 } |
| 29 |
| 30 polyfill-next-selector { content: ':host(.slide-from-right) > [animate]:not(.c
ore-selected)'; } |
| 31 :host(.slide-from-right) ::content > [animate]:not(.core-selected) { |
| 32 -webkit-transform: translateX(-100%); |
| 33 transform: translateX(-100%); |
| 34 } |
| 35 |
| 36 polyfill-next-selector { content: ':host(.slide-from-right) > .core-selected';
} |
| 37 :host(.slide-from-right) ::content > .core-selected { |
| 38 -webkit-transform: none; |
| 39 transform: none; |
| 40 } |
| 41 </core-style> |
| 42 |
| 43 <core-transition-pages id="slide-from-right" scopeClass="slide-from-right"></cor
e-transition-pages> |
OLD | NEW |