polymer-neon-rails 1.0.0.pre.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/app/assets/components/iron-flex-layout/README.md +4 -0
- data/app/assets/components/iron-flex-layout/bower.json +21 -0
- data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
- data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
- data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
- data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
- data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
- data/app/assets/components/iron-meta/README.md +46 -0
- data/app/assets/components/iron-meta/bower.json +28 -0
- data/app/assets/components/iron-meta/demo/index.html +45 -0
- data/app/assets/components/iron-meta/hero.svg +33 -0
- data/app/assets/components/iron-meta/index.html +27 -0
- data/app/assets/components/iron-meta/iron-meta.html +352 -0
- data/app/assets/components/iron-meta/test/basic.html +48 -0
- data/app/assets/components/iron-meta/test/index.html +30 -0
- data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
- data/app/assets/components/iron-resizable-behavior/README.md +16 -0
- data/app/assets/components/iron-resizable-behavior/bower.json +26 -0
- data/app/assets/components/iron-resizable-behavior/demo/index.html +29 -0
- data/app/assets/components/iron-resizable-behavior/demo/src/x-app.html +114 -0
- data/app/assets/components/iron-resizable-behavior/index.html +25 -0
- data/app/assets/components/iron-resizable-behavior/iron-resizable-behavior.html +139 -0
- data/app/assets/components/iron-resizable-behavior/test/basic.html +263 -0
- data/app/assets/components/iron-resizable-behavior/test/index.html +31 -0
- data/app/assets/components/iron-resizable-behavior/test/test-elements.html +143 -0
- data/app/assets/components/iron-selector/README.md +50 -0
- data/app/assets/components/iron-selector/bower.json +31 -0
- data/app/assets/components/iron-selector/demo/index.html +66 -0
- data/app/assets/components/iron-selector/index.html +28 -0
- data/app/assets/components/iron-selector/iron-multi-selectable.html +120 -0
- data/app/assets/components/iron-selector/iron-selectable.html +307 -0
- data/app/assets/components/iron-selector/iron-selection.html +115 -0
- data/app/assets/components/iron-selector/iron-selector.html +71 -0
- data/app/assets/components/iron-selector/test/activate-event.html +138 -0
- data/app/assets/components/iron-selector/test/basic.html +150 -0
- data/app/assets/components/iron-selector/test/content-element.html +43 -0
- data/app/assets/components/iron-selector/test/content.html +168 -0
- data/app/assets/components/iron-selector/test/index.html +36 -0
- data/app/assets/components/iron-selector/test/multi.html +135 -0
- data/app/assets/components/iron-selector/test/next-previous.html +134 -0
- data/app/assets/components/iron-selector/test/selected-attribute.html +72 -0
- data/app/assets/components/iron-selector/test/template-repeat.html +110 -0
- data/app/assets/components/neon-animation/README.md +304 -0
- data/app/assets/components/neon-animation/animations/cascaded-animation.html +84 -0
- data/app/assets/components/neon-animation/animations/fade-in-animation.html +49 -0
- data/app/assets/components/neon-animation/animations/fade-out-animation.html +49 -0
- data/app/assets/components/neon-animation/animations/hero-animation.html +83 -0
- data/app/assets/components/neon-animation/animations/opaque-animation.html +46 -0
- data/app/assets/components/neon-animation/animations/ripple-animation.html +92 -0
- data/app/assets/components/neon-animation/animations/scale-down-animation.html +65 -0
- data/app/assets/components/neon-animation/animations/scale-up-animation.html +58 -0
- data/app/assets/components/neon-animation/animations/slide-down-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-from-left-animation.html +60 -0
- data/app/assets/components/neon-animation/animations/slide-from-right-animation.html +60 -0
- data/app/assets/components/neon-animation/animations/slide-left-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-right-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-up-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/transform-animation.html +61 -0
- data/app/assets/components/neon-animation/bower.json +51 -0
- data/app/assets/components/neon-animation/demo/declarative/index.html +108 -0
- data/app/assets/components/neon-animation/demo/doc/basic.html +47 -0
- data/app/assets/components/neon-animation/demo/doc/my-animatable.html +73 -0
- data/app/assets/components/neon-animation/demo/doc/my-dialog.html +97 -0
- data/app/assets/components/neon-animation/demo/doc/types.html +53 -0
- data/app/assets/components/neon-animation/demo/dropdown/animated-dropdown.html +97 -0
- data/app/assets/components/neon-animation/demo/dropdown/index.html +54 -0
- data/app/assets/components/neon-animation/demo/grid/animated-grid.html +166 -0
- data/app/assets/components/neon-animation/demo/grid/fullsize-page-with-card.html +124 -0
- data/app/assets/components/neon-animation/demo/grid/index.html +70 -0
- data/app/assets/components/neon-animation/demo/index.html +6 -0
- data/app/assets/components/neon-animation/demo/list/full-view.html +122 -0
- data/app/assets/components/neon-animation/demo/list/index.html +29 -0
- data/app/assets/components/neon-animation/demo/list/list-demo.html +112 -0
- data/app/assets/components/neon-animation/demo/list/list-view.html +127 -0
- data/app/assets/components/neon-animation/demo/load/animated-grid.html +147 -0
- data/app/assets/components/neon-animation/demo/load/full-page.html +86 -0
- data/app/assets/components/neon-animation/demo/load/index.html +45 -0
- data/app/assets/components/neon-animation/demo/reprojection/animated-grid.html +166 -0
- data/app/assets/components/neon-animation/demo/reprojection/fullsize-page-with-card.html +124 -0
- data/app/assets/components/neon-animation/demo/reprojection/index.html +66 -0
- data/app/assets/components/neon-animation/demo/reprojection/reprojected-pages.html +42 -0
- data/app/assets/components/neon-animation/demo/shared.css +40 -0
- data/app/assets/components/neon-animation/demo/tiles/circles-page.html +110 -0
- data/app/assets/components/neon-animation/demo/tiles/index.html +77 -0
- data/app/assets/components/neon-animation/demo/tiles/squares-page.html +104 -0
- data/app/assets/components/neon-animation/guides/neon-animation.md +313 -0
- data/app/assets/components/neon-animation/index.html +30 -0
- data/app/assets/components/neon-animation/neon-animatable-behavior.html +156 -0
- data/app/assets/components/neon-animation/neon-animatable.html +54 -0
- data/app/assets/components/neon-animation/neon-animated-pages.html +208 -0
- data/app/assets/components/neon-animation/neon-animation-behavior.html +88 -0
- data/app/assets/components/neon-animation/neon-animation-runner-behavior.html +110 -0
- data/app/assets/components/neon-animation/neon-animation.html +17 -0
- data/app/assets/components/neon-animation/neon-animations.html +25 -0
- data/app/assets/components/neon-animation/neon-shared-element-animatable-behavior.html +37 -0
- data/app/assets/components/neon-animation/neon-shared-element-animation-behavior.html +66 -0
- data/app/assets/components/neon-animation/web-animations.html +11 -0
- data/app/assets/components/neon-elements/README.md +19 -0
- data/app/assets/components/neon-elements/bower.json +26 -0
- data/app/assets/components/paper-styles/README.md +3 -0
- data/app/assets/components/paper-styles/bower.json +27 -0
- data/app/assets/components/paper-styles/classes/global.html +96 -0
- data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
- data/app/assets/components/paper-styles/classes/shadow.html +39 -0
- data/app/assets/components/paper-styles/classes/typography.html +171 -0
- data/app/assets/components/paper-styles/color.html +333 -0
- data/app/assets/components/paper-styles/default-theme.html +39 -0
- data/app/assets/components/paper-styles/demo-pages.html +72 -0
- data/app/assets/components/paper-styles/demo.css +25 -0
- data/app/assets/components/paper-styles/paper-styles-classes.html +14 -0
- data/app/assets/components/paper-styles/paper-styles.html +17 -0
- data/app/assets/components/paper-styles/shadow.html +61 -0
- data/app/assets/components/paper-styles/typography.html +240 -0
- data/app/assets/components/polymer/LICENSE.txt +27 -0
- data/app/assets/components/polymer/bower.json +26 -0
- data/app/assets/components/polymer/build.log +27 -0
- data/app/assets/components/polymer/polymer-micro.html +523 -0
- data/app/assets/components/polymer/polymer-mini.html +1368 -0
- data/app/assets/components/polymer/polymer.html +3768 -0
- data/app/assets/components/web-animations-js/COPYING +202 -0
- data/app/assets/components/web-animations-js/History.md +108 -0
- data/app/assets/components/web-animations-js/README.md +161 -0
- data/app/assets/components/web-animations-js/bower.json +31 -0
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js.map +1 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js.map +1 -0
- data/app/assets/components/web-animations-js/web-animations.html +50 -0
- data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
- data/app/assets/components/web-animations-js/web-animations.min.js.gz +0 -0
- data/app/assets/components/web-animations-js/web-animations.min.js.map +1 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +956 -0
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.js +1078 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
- data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
- data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
- data/app/assets/components/webcomponentsjs/README.md +125 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +4414 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +15 -0
- data/app/assets/components/webcomponentsjs/bower.json +14 -0
- data/app/assets/components/webcomponentsjs/build.log +33 -0
- data/app/assets/components/webcomponentsjs/package.json +31 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +2300 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +13 -0
- data/app/assets/components/webcomponentsjs/webcomponents.js +7112 -0
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +15 -0
- data/lib/polymer-neon-rails.rb +2 -0
- data/lib/polymer-neon-rails/engine.rb +4 -0
- data/lib/polymer-neon-rails/version.rb +3 -0
- metadata +264 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
@@ -0,0 +1,108 @@
|
|
1
|
+
### 2.0.0 - *April 5 2015*
|
2
|
+
|
3
|
+
* Improve behavior of group Animation playback rate.
|
4
|
+
* Rename Animation to KeyframeEffect.
|
5
|
+
* Rename AnimationSequence to SequenceEffect.
|
6
|
+
* Rename AnimationGroup to GroupEffect.
|
7
|
+
* Rename AnimationPlayer to Animation.
|
8
|
+
* Remove KeyframeEffect.effect and add KeyframeEffect.getFrames.
|
9
|
+
* Rename Animation.source to Animation.effect.
|
10
|
+
* Rename Timeline.getAnimationPlayers to Timeline.getAnimations.
|
11
|
+
* Rename Element.getAnimationPlayers to Element.getAnimations.
|
12
|
+
|
13
|
+
### 1.0.7 - *March 10 2015*
|
14
|
+
|
15
|
+
* Improve performance of constructing groups and sequences.
|
16
|
+
* Remove support for animating zoom.
|
17
|
+
* Add bower file.
|
18
|
+
|
19
|
+
### 1.0.6 - *February 5 2015*
|
20
|
+
|
21
|
+
* Implement playbackRate setter for group players.
|
22
|
+
* Fix pausing a group player before its first tick.
|
23
|
+
* Fix cancelling a group player before its first tick.
|
24
|
+
* Fix excess CPU use on idle pages where custom effects and groups were used.
|
25
|
+
* Suppress AnimationTiming.playbackRate deprecation warning for cases where AnimationTiming.playbackRate == 1.
|
26
|
+
|
27
|
+
### 1.0.5 - *January 6 2015*
|
28
|
+
|
29
|
+
* Fix loading the polyfill in an SVG document
|
30
|
+
* Fix a problem where groups didn't take effect in their first frame
|
31
|
+
* Don't rely on performance.now
|
32
|
+
|
33
|
+
### 1.0.4 - *December 8 2014*
|
34
|
+
|
35
|
+
* Fix a critical bug where deprecation logic wasn't being loaded
|
36
|
+
when `web-animations-next` and `web-animations-next-lite` were
|
37
|
+
executed on top of a native `element.animate`.
|
38
|
+
|
39
|
+
### 1.0.3 - *December 4 2014*
|
40
|
+
|
41
|
+
* Fix a critical bug on iOS 7 and Safari <= 6. Due to limitations,
|
42
|
+
inline style patching is not supported on these platforms.
|
43
|
+
|
44
|
+
### 1.0.2 - *November 28 2014*
|
45
|
+
|
46
|
+
* Deprecated `AnimationTiming.playbackRate`.
|
47
|
+
|
48
|
+
For example, this is no longer supported:
|
49
|
+
|
50
|
+
var player = element.animate(
|
51
|
+
keyframes,
|
52
|
+
{duration: 1000, playbackRate: 2});
|
53
|
+
|
54
|
+
Use `AnimationPlayer.playbackRate` instead:
|
55
|
+
|
56
|
+
var player = element.animate(
|
57
|
+
keyframes,
|
58
|
+
{duration: 1000});
|
59
|
+
player.playbackRate = 2;
|
60
|
+
|
61
|
+
If you have any feedback on this change, please start a discussion
|
62
|
+
on the public-fx mailing list:
|
63
|
+
http://lists.w3.org/Archives/Public/public-fx/
|
64
|
+
|
65
|
+
Or file an issue against the specification on GitHub:
|
66
|
+
https://github.com/w3c/web-animations/issues/new
|
67
|
+
|
68
|
+
### 1.0.1 - *November 26 2014*
|
69
|
+
|
70
|
+
* Players should be constructed in idle state
|
71
|
+
* `play()` and `reverse()` should not force a start times
|
72
|
+
* Add `requestAnimationFrame` ids and `cancelAnimationFrame`
|
73
|
+
|
74
|
+
### 1.0.0 — *November 21 2014*
|
75
|
+
|
76
|
+
The web-animations-js hackers are pleased to announce the release of
|
77
|
+
a new codebase for the Web Animations Polyfill:
|
78
|
+
https://github.com/web-animations/web-animations-js
|
79
|
+
|
80
|
+
The previous polyfill has been moved to:
|
81
|
+
https://github.com/web-animations/web-animations-js-legacy
|
82
|
+
|
83
|
+
The new codebase is focused on code-size -- our smallest target is
|
84
|
+
now only 33kb or 11kb after gzip.
|
85
|
+
|
86
|
+
We've implemented native fallback. If the target browser provides
|
87
|
+
Web Animations features natively, the Polyfill will use them.
|
88
|
+
|
89
|
+
We now provide three different build targets:
|
90
|
+
|
91
|
+
`web-animations.min.js` - Tracks the Web Animations features that
|
92
|
+
are supported natively in browsers. Today that means Element.animate
|
93
|
+
and Playback Control in Chrome. If you’re not sure what features you
|
94
|
+
will need, start with this.
|
95
|
+
|
96
|
+
`web-animations-next.min.js` - All of web-animations.min.js plus
|
97
|
+
features that are still undergoing discussion or have yet to be
|
98
|
+
implemented natively.
|
99
|
+
|
100
|
+
`web-animations-next-lite.min.js` - A cut down version of
|
101
|
+
web-animations-next, removes several lesser used property handlers
|
102
|
+
and some of the larger and less used features such as matrix
|
103
|
+
interpolation/decomposition.
|
104
|
+
|
105
|
+
Not all features of the previous polyfill have been ported to the
|
106
|
+
new codebase; most notably mutation of Animations and Groups and
|
107
|
+
Additive Animations are not yet supported. These features are still
|
108
|
+
important and will be implemented in the coming weeks.
|
@@ -0,0 +1,161 @@
|
|
1
|
+
|
2
|
+
Quick Start
|
3
|
+
-----------
|
4
|
+
|
5
|
+
To provide native Chrome Web Animation features (`Element.animate` and Playback
|
6
|
+
Control) in other browsers, use `web-animations.min.js`. To explore all of the
|
7
|
+
proposed Web Animations API, use `web-animations-next.min.js`.
|
8
|
+
|
9
|
+
What is Web Animations?
|
10
|
+
-----------------------
|
11
|
+
|
12
|
+
Web Animations is a new JavaScript API for driving animated content on the web.
|
13
|
+
By unifying the animation features of SVG and CSS, Web Animations unlocks
|
14
|
+
features previously only usable declaratively, and exposes powerful,
|
15
|
+
high-performance animation capabilities to developers.
|
16
|
+
|
17
|
+
For more details see the
|
18
|
+
[W3C specification](http://w3c.github.io/web-animations/).
|
19
|
+
|
20
|
+
What is the polyfill?
|
21
|
+
---------------------
|
22
|
+
|
23
|
+
The polyfill is a JavaScript implementation of the Web Animations API. It works
|
24
|
+
on modern versions of all major browsers. For more details about browser
|
25
|
+
support see <https://www.polymer-project.org/resources/compatibility.html>.
|
26
|
+
|
27
|
+
Getting Started
|
28
|
+
---------------
|
29
|
+
|
30
|
+
Here's a simple example of an animation that scales and changes the opacity of
|
31
|
+
a `<div>` over 0.5 seconds. The animation alternates producing a pulsing
|
32
|
+
effect.
|
33
|
+
|
34
|
+
<script src="web-animations.min.js"></script>
|
35
|
+
<div class="pulse" style="width:150px;">Hello world!</div>
|
36
|
+
<script>
|
37
|
+
var elem = document.querySelector('.pulse');
|
38
|
+
var animation = elem.animate([
|
39
|
+
{opacity: 0.5, transform: "scale(0.5)"},
|
40
|
+
{opacity: 1.0, transform: "scale(1)"}
|
41
|
+
], {
|
42
|
+
direction: 'alternate',
|
43
|
+
duration: 500,
|
44
|
+
iterations: Infinity
|
45
|
+
});
|
46
|
+
</script>
|
47
|
+
|
48
|
+
Web Animations supports off-main-thread animations, and also allows procedural
|
49
|
+
generation of animations and fine-grained control of animation playback. See
|
50
|
+
<http://web-animations.github.io> for ideas and inspiration!
|
51
|
+
|
52
|
+
Native Fallback
|
53
|
+
---------------
|
54
|
+
|
55
|
+
When the polyfill runs on a browser that implements `Element.animate` and
|
56
|
+
`Animation` Playback Control it will detect and use the underlying native
|
57
|
+
features.
|
58
|
+
|
59
|
+
Different Build Targets
|
60
|
+
-----------------------
|
61
|
+
|
62
|
+
### web-animations.min.js
|
63
|
+
|
64
|
+
Tracks the Web Animations features that are supported natively in browsers.
|
65
|
+
Today that means Element.animate and Playback Control in Chrome. If you’re not
|
66
|
+
sure what features you will need, start with this.
|
67
|
+
|
68
|
+
### web-animations-next.min.js
|
69
|
+
|
70
|
+
Contains all of web-animations.min.js plus features that are still undergoing
|
71
|
+
discussion or have yet to be implemented natively.
|
72
|
+
|
73
|
+
### web-animations-next-lite.min.js
|
74
|
+
|
75
|
+
A cut down version of web-animations-next, it removes several lesser used
|
76
|
+
property handlers and some of the larger and less used features such as matrix
|
77
|
+
interpolation/decomposition.
|
78
|
+
|
79
|
+
### Build Target Comparison
|
80
|
+
|
81
|
+
| | web-animations | web-animations-next | web-animations-next-lite |
|
82
|
+
|------------------------|:--------------:|:-------------------:|:------------------------:|
|
83
|
+
|Size (gzipped) | 12.5kb | 14kb | 10.5kb |
|
84
|
+
|Element.animate | ✔ | ✔ | ✔ |
|
85
|
+
|Timing input (easings, duration, fillMode, etc.) for animation effects| ✔ | ✔ | ✔ |
|
86
|
+
|Playback control | ✔ | ✔ | ✔ |
|
87
|
+
|Support for animating lengths, transforms and opacity| ✔ | ✔ | ✔ |
|
88
|
+
|Support for animating other CSS properties| ✔ | ✔ | 🚫 |
|
89
|
+
|Matrix fallback for transform animations | ✔ | ✔ | 🚫 |
|
90
|
+
|KeyframeEffect constructor | 🚫 | ✔ | ✔ |
|
91
|
+
|Simple GroupEffects & SequenceEffects | 🚫 | ✔ | ✔ |
|
92
|
+
|Custom Effects | 🚫 | ✔ | ✔ |
|
93
|
+
|Timing input (easings, duration, fillMode, etc.) for groups</div>| 🚫 | 🚫\* | 🚫 |
|
94
|
+
|Additive animation | 🚫 | 🚫\* | 🚫 |
|
95
|
+
|Motion path | 🚫\* | 🚫\* | 🚫 |
|
96
|
+
|Modifiable keyframe effect timing| 🚫 | 🚫\* | 🚫\* |
|
97
|
+
|Modifiable group timing | 🚫 | 🚫\* | 🚫\* |
|
98
|
+
|Usable inline style\*\* | ✔ | ✔ | 🚫 |
|
99
|
+
|
100
|
+
\* support is planned for these features.
|
101
|
+
\*\* see inline style caveat below.
|
102
|
+
|
103
|
+
Caveats
|
104
|
+
-------
|
105
|
+
|
106
|
+
Some things won’t ever be faithful to the native implementation due to browser
|
107
|
+
and CSS API limitations. These include:
|
108
|
+
|
109
|
+
### Inline Style
|
110
|
+
|
111
|
+
Inline style modification is the mechanism used by the polyfill to animate
|
112
|
+
properties. Both web-animations and web-animations-next incorporate a module
|
113
|
+
that emulates a vanilla inline style object, so that style modification from
|
114
|
+
JavaScript can still work in the presence of animations. However, to keep the
|
115
|
+
size of web-animations-next-lite as small as possible, the style emulation
|
116
|
+
module is not included. When using this version of the polyfill, JavaScript
|
117
|
+
inline style modification will be overwritten by animations.
|
118
|
+
Due to browser constraints inline style modification is not supported on iOS 7
|
119
|
+
or Safari 6 (or earlier versions).
|
120
|
+
|
121
|
+
### Prefix handling
|
122
|
+
|
123
|
+
The polyfill will automatically detect the correctly prefixed name to use when
|
124
|
+
writing animated properties back to the platform. Where possible, the polyfill
|
125
|
+
will only accept unprefixed versions of experimental features. For example:
|
126
|
+
|
127
|
+
var effect = new KeyframeEffect(elem, {"transform": "translate(100px, 100px)"}, 2000);
|
128
|
+
|
129
|
+
will work in all browsers that implement a conforming version of transform, but
|
130
|
+
|
131
|
+
var effect = new KeyframeEffect(elem, {"-webkit-transform": "translate(100px, 100px)"}, 2000);
|
132
|
+
|
133
|
+
will not work anywhere.
|
134
|
+
|
135
|
+
API and Specification Feedback
|
136
|
+
------------------------------
|
137
|
+
|
138
|
+
File an issue on GitHub: <https://github.com/w3c/web-animations/issues/new>.
|
139
|
+
Alternatively, send an email to <public-fx@w3.org> with subject line
|
140
|
+
“[web-animations] … message topic …”
|
141
|
+
([archives](http://lists.w3.org/Archives/Public/public-fx/)).
|
142
|
+
|
143
|
+
Polyfill Issues
|
144
|
+
---------------
|
145
|
+
|
146
|
+
Report any issues with this implementation on GitHub:
|
147
|
+
<https://github.com/web-animations/web-animations-next/issues/new>.
|
148
|
+
|
149
|
+
Breaking changes
|
150
|
+
----------------
|
151
|
+
|
152
|
+
When we make a potentially breaking change to the polyfill's API
|
153
|
+
surface (like a rename) we will, where possible, continue supporting the
|
154
|
+
old version, deprecated, for three months, and ensure that there are
|
155
|
+
console warnings to indicate that a change is pending. After three
|
156
|
+
months, the old version of the API surface (e.g. the old version of a
|
157
|
+
function name) will be removed. *If you see deprecation warnings you
|
158
|
+
can't avoid it by not updating*.
|
159
|
+
|
160
|
+
We also announce anything that isn't a bug fix on
|
161
|
+
[web-animations-changes@googlegroups.com](https://groups.google.com/forum/#!forum/web-animations-changes).
|