3 Copyright 2013 The Polymer Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file.
9 <title>paper-shadow
</title>
11 <meta charset=
"utf-8">
12 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge,chrome=1">
13 <meta name=
"viewport" content=
"width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
15 <script src=
"../webcomponentsjs/webcomponents.js"></script>
16 <link href=
"paper-shadow.html" rel=
"import">
20 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
24 -webkit-tap-highlight-color: rgba(
0,
0,
0,
0);
25 -webkit-touch-callout: none;
38 display: inline-block;
40 box-sizing: border-box;
49 display: inline-block;
51 box-sizing: border-box;
64 <template is=
"auto-binding">
70 <paper-shadow class=
"card" z=
"0">
74 <paper-shadow class=
"card" z=
"1">
78 <paper-shadow class=
"card" z=
"2">
82 <paper-shadow class=
"card" z=
"3">
86 <paper-shadow class=
"card" z=
"4">
90 <paper-shadow class=
"card" z=
"5">
96 <section on-tap=
"{{tapAction}}">
100 <paper-shadow class=
"card" z=
"0" animated
>
104 <paper-shadow class=
"fab" z=
"0" animated layout center-center
>
114 var scope
= document
.querySelector('template[is=auto-binding]');
116 scope
.tapAction = function(e
) {
117 var target
= e
.target
;
119 target
.setZ(target
.z
+ 1);
120 if (target
.z
=== 5) {
124 target
.setZ(target
.z
- 1);
125 if (target
.z
=== 0) {