| Index: third_party/polymer/v0_8/components-chromium/neon-animation/animations/transform-animation-extracted.js
|
| diff --git a/third_party/polymer/v0_8/components-chromium/neon-animation/animations/transform-animation-extracted.js b/third_party/polymer/v0_8/components-chromium/neon-animation/animations/transform-animation-extracted.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bb8eabd50a19f897d84d287f87fb71a13af38384
|
| --- /dev/null
|
| +++ b/third_party/polymer/v0_8/components-chromium/neon-animation/animations/transform-animation-extracted.js
|
| @@ -0,0 +1,29 @@
|
| +
|
| +
|
| + Polymer({
|
| +
|
| + is: 'transform-animation',
|
| +
|
| + behaviors: [
|
| + Polymer.NeonAnimationBehavior
|
| + ],
|
| +
|
| + configure: function(config) {
|
| + var node = config.node;
|
| + var transformFrom = config.transformFrom || 'none';
|
| + var transformTo = config.transformTo || 'none';
|
| +
|
| + if (config.transformOrigin) {
|
| + this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin);
|
| + }
|
| +
|
| + this._effect = new KeyframeEffect(node, [
|
| + {'transform': transformFrom},
|
| + {'transform': transformTo}
|
| + ], this.timingFromConfig(config));
|
| +
|
| + return this._effect;
|
| + }
|
| +
|
| + });
|
| +
|
|
|