1 <link href=
"../../core-icons/core-icons.html" rel=
"import">
2 <link href=
"../../core-icon-button/core-icon-button.html" rel=
"import">
3 <link href=
"../core-animated-pages.html" rel=
"import">
5 <polymer-element name=
"nested-animated-pages">
22 box-sizing: border-box;
26 .tall-toolbar.colored {
31 .tall-toolbar [flex] {
40 background-color: #f1f1f1;
52 <core-animated-pages id=
"pages" selected=
"{{page}}" selectedItem=
"{{selectedItem}}" transitions=
"hero-transition" no-transition?=
"{{noTransition}}">
54 <section id=
"page1" cross-fade
>
55 <div class=
"tall-toolbar colored" style=
"background-color:orange;" layout vertical
hero-id=
"thing" hero?=
"{{page === 0 || !noTransition}}">
56 <div layout horizontal center
>
57 <core-icon-button icon=
"clear" on-tap=
"{{back}}"></core-icon-button>
59 <core-icon-button icon=
"arrow-forward" on-tap=
"{{transition}}"></core-icon-button>
63 <div flex
class=
"body"></div>
66 <section layout vertical
id=
"page2" cross-fade
>
67 <div class=
"tall-toolbar" layout vertical
>
68 <div layout horizontal center
>
69 <core-icon-button icon=
"clear" on-tap=
"{{back}}"></core-icon-button>
71 <core-icon-button icon=
"arrow-forward" on-tap=
"{{transition}}"></core-icon-button>
75 <div flex
class=
"body"></div>
76 <div class=
"square" style=
"background-color:orange;" hero-id=
"thing" hero?=
"{{page === 1 || !noTransition}}"></div>
79 </core-animated-pages>
93 this.noTransition
= true;
94 this.fire('nested-back');
97 transition: function() {
98 this.noTransition
= false;
99 this.page
= this.page
=== 0 ? 1 : 0;