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-up">
13 polyfill-next-selector { content: ':host.slide-up
> * [slide-up]'; }
14 :host(.slide-up) ::content
> * /deep/ [slide-up] {
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-up]'; }
20 ::content
> .core-selected /deep/ [slide-up] {
21 -webkit-transform: none;
25 polyfill-next-selector { content: ':host
> [animate]:not(.core-selected) [slide-up]'; }
26 ::content
> [animate]:not(.core-selected) /deep/ [slide-up] {
27 -webkit-transform: translateY(
150%);
28 transform: translateY(
150%);
32 <core-style id=
"slide-up-offscreen">
33 polyfill-next-selector { content: ':host.slide-up-offscreen
> * [slide-up-offscreen]'; }
34 :host(.slide-up-offscreen) ::content
> * /deep/ [slide-up-offscreen] {
35 -webkit-transition: -webkit-transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(
0.4,
0,
0.2,
1);
36 transition: transform {{g.transitions.slideDuration || g.transitions.duration}} cubic-bezier(
0.4,
0,
0.2,
1);
39 polyfill-next-selector { content: ':host
> .core-selected [slide-up-offscreen]'; }
40 ::content
> .core-selected /deep/ [slide-up-offscreen] {
41 -webkit-transform: none;
45 polyfill-next-selector { content: ':host
> [animate]:not(.core-selected) [slide-up-offscreen]'; }
46 ::content
> [animate]:not(.core-selected) /deep/ [slide-up-offscreen] {
47 -webkit-transform: translateY(
100vh);
48 transform: translateY(
100vh);
53 content: ':host
> [animate]:not(.core-selected) [slide-up-offscreen]';
54 -webkit-transform: translateY(
1000px);
60 `slide-up` slides an element in the outgoing page from the bottom of the window
61 and slides in an element in the incoming page from the bottom of the window during
62 a page transition. You can configure the duration of the transition with the global
63 variable `CoreStyle.g.transitions.slideDuration`.
67 <core-animated-pages transition="slide-up">
69 <div id="div1" slide-up></div>
72 </core-animated-pages>
75 @extends core-transition-pages
81 <core-transition-pages id=
"slide-up" activeClass=
"slide-up"></core-transition-pages>
82 <core-transition-pages id=
"slide-up-offscreen" activeClass=
"slide-up-offscreen"></core-transition-pages>