OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.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/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 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/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 `--paper-spinner-layer-4-color` | Color of the fourth spinner rotation | `--goog
le-green-500` | 46 `--paper-spinner-layer-4-color` | Color of the fourth spinner rotation | `--goog
le-green-500` |
47 `--paper-spinner-stroke-width` | The width of the spinner stroke | 3px | 47 `--paper-spinner-stroke-width` | The width of the spinner stroke | 3px |
48 | 48 |
49 @group Paper Elements | 49 @group Paper Elements |
50 @element paper-spinner | 50 @element paper-spinner |
51 @hero hero.svg | 51 @hero hero.svg |
52 @demo demo/index.html | 52 @demo demo/index.html |
53 --> | 53 --> |
54 | 54 |
55 <dom-module id="paper-spinner"> | 55 <dom-module id="paper-spinner"> |
56 <template> | 56 <template strip-whitespace> |
57 <style include="paper-spinner-styles"></style> | 57 <style include="paper-spinner-styles"></style> |
58 | 58 |
59 <div id="spinnerContainer" class-name="[[__computeContainerClasses(active, _
_coolingDown)]]"> | 59 <div id="spinnerContainer" class-name="[[__computeContainerClasses(active, _
_coolingDown)]]"> |
60 <div class="spinner-layer layer-1"> | 60 <div class="spinner-layer layer-1"> |
61 <div class="circle-clipper left"> | 61 <div class="circle-clipper left"></div> |
62 <div class="circle"></div> | 62 <div class="circle-clipper right"></div> |
63 </div><div class="gap-patch"> | |
64 <div class="circle"></div> | |
65 </div><div class="circle-clipper right"> | |
66 <div class="circle"></div> | |
67 </div> | |
68 </div> | 63 </div> |
69 | 64 |
70 <div class="spinner-layer layer-2"> | 65 <div class="spinner-layer layer-2"> |
71 <div class="circle-clipper left"> | 66 <div class="circle-clipper left"></div> |
72 <div class="circle"></div> | 67 <div class="circle-clipper right"></div> |
73 </div><div class="gap-patch"> | |
74 <div class="circle"></div> | |
75 </div><div class="circle-clipper right"> | |
76 <div class="circle"></div> | |
77 </div> | |
78 </div> | 68 </div> |
79 | 69 |
80 <div class="spinner-layer layer-3"> | 70 <div class="spinner-layer layer-3"> |
81 <div class="circle-clipper left"> | 71 <div class="circle-clipper left"></div> |
82 <div class="circle"></div> | 72 <div class="circle-clipper right"></div> |
83 </div><div class="gap-patch"> | |
84 <div class="circle"></div> | |
85 </div><div class="circle-clipper right"> | |
86 <div class="circle"></div> | |
87 </div> | |
88 </div> | 73 </div> |
89 | 74 |
90 <div class="spinner-layer layer-4"> | 75 <div class="spinner-layer layer-4"> |
91 <div class="circle-clipper left"> | 76 <div class="circle-clipper left"></div> |
92 <div class="circle"></div> | 77 <div class="circle-clipper right"></div> |
93 </div><div class="gap-patch"> | |
94 <div class="circle"></div> | |
95 </div><div class="circle-clipper right"> | |
96 <div class="circle"></div> | |
97 </div> | |
98 </div> | 78 </div> |
99 </div> | 79 </div> |
100 </template> | 80 </template> |
101 | 81 |
102 <script> | 82 <script> |
103 Polymer({ | 83 Polymer({ |
104 is: 'paper-spinner', | 84 is: 'paper-spinner', |
105 | 85 |
106 behaviors: [ | 86 behaviors: [ |
107 Polymer.PaperSpinnerBehavior | 87 Polymer.PaperSpinnerBehavior |
108 ] | 88 ] |
109 }); | 89 }); |
110 </script> | 90 </script> |
111 </dom-module> | 91 </dom-module> |
OLD | NEW |