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.github.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/CONTRIBUTORS.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/PATENTS.txt
10 <link href=
"core-transition-pages.html" rel=
"import">
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.transitions.duration}} cubic-bezier(
0.4,
0,
0.2,
1);
16 transition: transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(
0.4,
0,
0.2,
1);
19 polyfill-next-selector { content: ':host
> .core-selected [slide-down]'; }
20 ::content
> .core-selected /deep/ [slide-down] {
21 -webkit-transform: none;
25 polyfill-next-selector { content: ':host
> [animate]:not(.core-selected) [slide-down]'; }
26 ::content
> [animate]:not(.core-selected) /deep/ [slide-down] {
27 -webkit-transform: translateY(-
100%);
28 transform: translateY(-
100%);
34 `slide-down` slides an element in the outgoing page from the top of the window and
35 slides in an element in the incoming page from the top of the window during a page
36 transition. You can configure the duration of the transition with the global variable
37 `CoreStyle.g.transitions.slideDuration`.
41 <core-animated-pages transition="slide-down">
43 <div id="div1" slide-down></div>
46 </core-animated-pages>
49 @extends core-transition-pages
55 <core-transition-pages id=
"slide-down" activeClass=
"slide-down"></core-transition-pages>