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>
15 <script src=
"../../webcomponentsjs/webcomponents.js"></script>
16 <link href=
"../../core-icons/av-icons.html" rel=
"import">
17 <link href=
"../../paper-fab/paper-fab.html" rel=
"import">
19 <link href=
"../core-animated-pages.html" rel=
"import">
20 <link href=
"../transitions/slide-up.html" rel=
"import">
21 <link href=
"../transitions/list-cascade.html" rel=
"import">
25 font-family: 'Roboto
2', 'Helvetica Neue', Helvetica, Arial, sans-serif;
42 <polymer-element name=
"quiz-demo">
70 background-color: #ff4081;
74 background-color: #ffff8d;
78 background: url(quiz1-intro.png);
84 box-sizing: border-box;
87 background-color: #ffeb3b;
94 box-sizing: border-box;
102 .tall-toolbar.categories {
103 background-color: #
00bbd3;
107 .tall-toolbar.questions {
108 background-color: #ffeb3b;
112 background-color: #fafafa;
126 background-color: #ff80ab;
129 .footer-right, .score {
130 border-top:
1px solid #ccc;
131 background-color: #fff;
136 box-sizing: border-box;
149 <core-animated-pages selected=
"{{page}}" transitions=
"hero-transition slide-up slide-down cross-fade list-cascade" on-core-animated-pages-transition-end=
"{{complete}}">
151 <section layout vertical
>
153 <div class=
"tall-toolbar categories" slide-down
>
154 <span>Your name here
</span>
157 <div class=
"tiles-container">
158 <div class=
"tile" style=
"background-color:#ccc;" layout vertical
>
159 <div class=
"tile-top" flex
></div>
160 <div class=
"tile-bottom" style=
"background-color:#aaa;">
164 <div class=
"tile" hero-id=
"category-image" hero
style=
"background-color:#ffff8d;" layout vertical
on-tap=
"{{transition}}">
165 <div class=
"tile-top" flex
></div>
166 <div class=
"tile-bottom" hero-id=
"footer" hero
style=
"background-color:#ffeb3b;">
170 <div class=
"tile" style=
"background-color:#b9f6ca;" layout vertical
>
171 <div class=
"tile-top" flex
></div>
172 <div class=
"tile-bottom" style=
"background-color:#0f9d58;">
176 <div class=
"tile" style=
"background-color:#ff8a80;" layout vertical
>
177 <div class=
"tile-top" flex
></div>
178 <div class=
"tile-bottom" style=
"background-color:#db4437;">
182 <div class=
"tile" style=
"background-color:#82b1ff;" layout vertical
>
183 <div class=
"tile-top" flex
></div>
184 <div class=
"tile-bottom" style=
"background-color:#4285f4;">
188 <div class=
"tile" style=
"background-color:#b388ff;" layout vertical
>
189 <div class=
"tile-top" flex
></div>
190 <div class=
"tile-bottom" style=
"background-color:#7e57c2;">
198 <section layout vertical
>
200 <div class=
"top" hero-id=
"category-image" hero flex layout horizontal center center-justified
>
201 <div class=
"top-image" cross-fade
></div>
203 <div class=
"bottom" hero-id=
"footer" hero cross-fade
>
204 <span cross-fade
>General Knowledge
</span>
206 <div class=
"fab fab-0" hero-id=
"fab" hero
>
207 <paper-fab icon=
"av:play-arrow" on-tap=
"{{transition}}" hero
></paper-fab>
211 <section layout vertical
>
213 <div class=
"tall-toolbar questions" hero-id=
"footer" hero
>
214 <span cross-fade
>Question here
</span>
216 <div class=
"fab fab-1" hero-id=
"fab" hero
>
217 <paper-fab icon=
"av:play-arrow" on-tap=
"{{transition}}" hero
></paper-fab>
220 <div flex
class=
"middle" slide-up list-cascade
>
228 <div class=
"footer" layout horizontal slide-up
>
229 <div class=
"avatar"></div>
230 <div class=
"footer-right" flex
>
240 </core-animated-pages>
245 Polymer('quiz-demo', {
249 transition: function(e
) {
250 if (this.page
=== 2) {
261 <quiz-demo></quiz-demo>