| 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-down"> | |
| 13 polyfill-next-selector { content: ':host.slide-down > * [slide-down]'; } | |
| 14 :host(.slide-down) ::content > * /deep/ [slide-down] { | |
| 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 > .core-selected [slide-down]'; } | |
| 20 ::content > .core-selected /deep/ [slide-down] { | |
| 21 -webkit-transform: none; | |
| 22 transform: none; | |
| 23 } | |
| 24 | |
| 25 polyfill-next-selector { content: ':host > [animate]:not(.core-selected) [slid
e-down]'; } | |
| 26 ::content > [animate]:not(.core-selected) /deep/ [slide-down] { | |
| 27 -webkit-transform: translateY(-100%); | |
| 28 transform: translateY(-100%); | |
| 29 } | |
| 30 </core-style> | |
| 31 | |
| 32 <!-- | |
| 33 | |
| 34 `slide-down` slides an element in the outgoing page from the top of the window a
nd | |
| 35 slides in an element in the incoming page from the top of the window during a pa
ge | |
| 36 transition. You can configure the duration of the transition with the global var
iable | |
| 37 `CoreStyle.g.transitions.slideDuration`. | |
| 38 | |
| 39 Example: | |
| 40 | |
| 41 <core-animated-pages transition="slide-down"> | |
| 42 <section> | |
| 43 <div id="div1" slide-down></div> | |
| 44 </section> | |
| 45 <section></section> | |
| 46 </core-animated-pages> | |
| 47 | |
| 48 @class slide-down | |
| 49 @extends core-transition-pages | |
| 50 @status beta | |
| 51 @homepage github.io | |
| 52 | |
| 53 --> | |
| 54 | |
| 55 <core-transition-pages id="slide-down" activeClass="slide-down"></core-transitio
n-pages> | |
| OLD | NEW |