4 <title>core-animated-pages
</title>
6 <script src=
"../../platform/platform.js"></script>
7 <link href=
"../core-animated-pages.html" rel=
"import">
11 font-family: 'Roboto
2', 'Helvetica Neue', Helvetica, Arial, sans-serif;
28 <polymer-element name=
"music-demo">
41 display: inline-block;
47 background-color: #fff;
48 box-shadow:
0 2px
10px
0 rgba(
0,
0,
0,
0.16);
75 box-shadow:
0 6px
20px
0 rgba(
0,
0,
0,
0.19);
98 <core-animated-pages selected=
"{{page}}" transitions=
"hero-transition" on-core-animated-pages-transition-end=
"{{complete}}">
102 <div class=
"chip-container" hero-p
on-tap=
"{{transition}}">
104 <template repeat=
"{{items as item}}">
106 <div class=
"chip" hero-id=
"{{item.artist}}-{{item.album}}" hero?=
"{{selectedAlbum === item }}">
107 <div class=
"chip-top" style=
"background:{{item.color}};" hero-id=
"{{item.artist}}-{{item.album}}-art" hero?=
"{{selectedAlbum === item}}"></div>
108 <div class=
"chip-bottom">
109 <div class=
"chip-album-title">{{item.album}}
</div>
110 <div class=
"chip-artist">{{item.artist}}
</div>
119 <section id=
"details">
121 <div class=
"card" layout horizontal
hero-id=
"{{selectedAlbum.artist}}-{{selectedAlbum.album}}" hero
on-tap=
"{{transition}}">
122 <div class=
"card-left" style=
"background:{{selectedAlbum.color}};" hero-id=
"{{selectedAlbum.artist}}-{{selectedAlbum.album}}-art" hero
></div>
123 <div class=
"card-right" flex
>
124 <div layout horizontal center
>
126 <div class=
"card-icon" style=
"background:{{selectedAlbum.color}};"></div>
129 <div class=
"card-album-title">{{selectedAlbum.album}}
</div>
130 <div class=
"card-album-artist">{{selectedAlbum.artist}}
</div>
138 </core-animated-pages>
143 Polymer('music-demo', {
148 { artist
: 'Tycho', album
: 'Fragments', color
: '#f4db33' },
149 { artist
: 'Tycho', album
: 'Past Prologue', color
: '#972ff8' },
150 { artist
: 'Tycho', album
: 'Spectre', color
: '#7dd6fe' },
151 { artist
: 'Tycho', album
: 'Awake', color
: '#dc3c84' }
156 transition: function(e
) {
157 if (this.page
=== 0 && e
.target
.templateInstance
.model
.item
) {
158 this.selectedAlbum
= e
.target
.templateInstance
.model
.item
;
169 <div class=
"green"></div>
171 <music-demo></music-demo>