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 <core-style id="slide-from-bottom"> | |
13 polyfill-next-selector { content: ':host(.slide-from-bottom) > *'; } | |
14 :host(.slide-from-bottom) ::content > * { | |
15 -webkit-transition: -webkit-transform {{g.transitions.slideDuration || g.tra
nsitions.duration}} cubic-bezier(0.4, 0, 0.2, 1); | |
16 transition: transform {{g.transitions.slideDuration || g.transitions.duratio
n}} cubic-bezier(0.4, 0, 0.2, 1); | |
17 } | |
18 | |
19 polyfill-next-selector { content: ':host(.slide-from-bottom) > .core-selected
~ [animate]:not(.core-selected)'; } | |
20 :host(.slide-from-bottom) ::content > .core-selected ~ [animate]:not(.core-sel
ected) { | |
21 -webkit-transform: translateY(100%); | |
22 transform: translateY(100%); | |
23 } | |
24 | |
25 polyfill-next-selector { content: ':host(.slide-from-bottom) > [animate]:not(.
core-selected)'; } | |
26 :host(.slide-from-bottom) ::content > [animate]:not(.core-selected) { | |
27 -webkit-transform: translateY(-100%); | |
28 transform: translateY(-100%); | |
29 } | |
30 | |
31 polyfill-next-selector { content: ':host(.slide-from-bottom) > .core-selected'
; } | |
32 :host(.slide-from-bottom) ::content > .core-selected { | |
33 -webkit-transform: none; | |
34 transform: none; | |
35 } | |
36 </core-style> | |
37 | |
38 <core-transition-pages id="slide-from-bottom" scopeClass="slide-from-bottom"></c
ore-transition-pages> | |
OLD | NEW |