Remove LOAD_SUB_FRAME load flag.
[chromium-blink-merge.git] / third_party / polymer / components / core-animated-pages / transitions / slide-down.html
blob025f71c01228ac55991d4016eca9f8dad04dda3b
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 -->
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;
22 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%);
30 </core-style>
32 <!--
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`.
39 Example:
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>
48 @class slide-down
49 @extends core-transition-pages
50 @status beta
51 @homepage github.io
53 -->
55 <core-transition-pages id="slide-down" activeClass="slide-down"></core-transition-pages>