Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: polymer_1.0.4/bower_components/neon-animation/demo/list/full-view.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 -->
9 <link rel="import" href="../../../polymer/polymer.html">
10 <link rel="import" href="../../../paper-styles/paper-styles.html">
11 <link rel="import" href="../../neon-animatable-behavior.html">
12
13 <dom-module id="full-view">
14
15 <style>
16
17 :host {
18 @apply(--layout-vertical);
19 }
20
21 .main {
22 background: white;
23 @apply(--layout-flex);
24 @apply(--layout-scroll);
25 @apply(--shadow-elevation-8dp);
26 }
27
28 .image-container {
29 position: relative;
30 width: 100%;
31 padding-bottom: 100%;
32 }
33
34 .image {
35 position: absolute;
36 width: 100%;
37 height: 100%;
38 background: repeating-linear-gradient(
39 45deg,
40 #f5f5f5,
41 #f5f5f5 8px,
42 #e0e0e0 8px,
43 #e0e0e0 16px
44 );
45 }
46
47 </style>
48
49 <template>
50
51 <paper-toolbar class="medium-tall">
52 <paper-icon-button id="button" icon="clear" on-click="_onClearButtonClick" ></paper-icon-button>
53 </paper-toolbar>
54
55 <div id="main" class="main">
56 <div class="image-container">
57 <div class="image">
58 </div>
59 </div>
60 </div>
61
62 </template>
63
64 </dom-module>
65
66 <script>
67
68 Polymer({
69
70 is: 'full-view',
71
72 behaviors: [
73 Polymer.NeonAnimatableBehavior
74 ],
75
76 properties: {
77
78 sharedElements: {
79 type: Object,
80 value: function() {
81 return {
82 'hero': this.$.main
83 };
84 }
85 },
86
87 animationConfig: {
88 type: Object,
89 value: function() {
90 return {
91 'entry': [{
92 name: 'fade-in-animation',
93 node: this.$.button
94 }, {
95 name: 'hero-animation',
96 id: 'hero',
97 toPage: this
98 }],
99
100 'exit': [{
101 name: 'fade-out-animation',
102 node: this.$.button
103 }, {
104 name: 'scale-down-animation',
105 node: this.$.main,
106 transformOrigin: '50% 50%',
107 axis: 'y'
108 }]
109
110 }
111 }
112 }
113
114 },
115
116 _onClearButtonClick: function() {
117 this.fire('close');
118 }
119
120 });
121
122 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698