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
14 <script src=
"../../webcomponentsjs/webcomponents.js"></script>
15 <link href=
"../core-animated-pages.html" rel=
"import">
16 <link href=
"../transitions/cross-fade.html" rel=
"import">
17 <link href=
"../transitions/slide-from-right.html" rel=
"import">
21 font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
44 <select onchange=
"change();">
45 <option value=
"cross-fade-all" selected
>cross-fade-all
</option>
46 <option value=
"slide-from-right">slide-from-right
</option>
49 <core-animated-pages onclick=
"stuff();" transitions=
"cross-fade-all">
51 <div layout vertical center center-justified
style=
"background:red;">
56 <div layout vertical center center-justified
style=
"background:blue;">
61 <div layout vertical center center-justified
style=
"background:purple;">
66 <div layout vertical center center-justified
style=
"background:orange;">
71 <div layout vertical center center-justified
style=
"background:green;">
75 </core-animated-pages>
79 var s
= document
.querySelector('select');
80 document
.querySelector('core-animated-pages').transitions
= document
.querySelector('select').options
[s
.selectedIndex
].value
;
86 var p
= document
.querySelector('core-animated-pages');
87 if (up
&& p
.selected
=== max
|| !up
&& p
.selected
=== 0) {