Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / polymer / components / core-animated-pages / transitions / slide-down.html
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.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
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.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);
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) [slide-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 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`.
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-transition-pages>