3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
13 <title>core-animated-pages
</title>
14 <script src=
"../../webcomponentsjs/webcomponents.js"></script>
15 <link href=
"nested-animated-pages.html" rel=
"import">
19 font-family: 'Roboto
2', 'Helvetica Neue', Helvetica, Arial, sans-serif;
36 <polymer-element name=
"nested-demo">
56 display: inline-block;
61 background-color: orange;
66 <core-animated-pages selected=
"{{page}}" transitions=
"hero-transition cross-fade">
68 <section on-tap=
"{{transition}}" layout horizontal center-justified
>
70 <div class=
"square" id=
"thing1" hero-id=
"thing" hero?=
"{{subpage === 0}}" cross-fade?=
"{{subpage !== 0}}">thing
1</div>
71 <div class=
"square" id=
"thing2" hero-id=
"thing" hero?=
"{{subpage === 1}}" cross-fade?=
"{{subpage !== 1}}">thing
2</div>
75 <nested-animated-pages page=
"{{subpage}}" on-nested-back=
"{{back}}"></nested-animated-pages>
77 </core-animated-pages>
81 Polymer('nested-demo', {
86 transition: function(e
) {
89 if (el
.id
=== "thing1") {
95 setTimeout(function() {
109 <nested-demo></nested-demo>