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

Side by Side Diff: pkg/polymer/lib/elements/polymer-animation/polymer-translate.html

Issue 175443005: [polymer] import all elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated from bower Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <link rel="import" href="polymer-animation.html">
2 <polymer-element name="polymer-translate" extends="polymer-animation" attributes ="fromX fromY toX toY">
3 <template>
4 </template>
5 <script>
6 Polymer('polymer-translate', {
7 fromX: '0',
8 fromY: '0',
9 toX: '0',
10 toY: '0',
11 fromXChanged: function() {
12 this.generate();
13 },
14 fromYChanged: function() {
15 this.generate();
16 },
17 toXChanged: function() {
18 this.generate();
19 },
20 toYChanged: function() {
21 this.generate();
22 },
23 generate: function() {
24 this.keyframes = [
25 {transform: 'translate3d(' + this.fromX + ',' + this.fromY + ', 0)'},
26 {transform: 'translate3d(' + this.toX + ',' + this.toY + ', 0)'}
27 ];
28 }
29 });
30 </script>
31 </polymer-element>
OLDNEW
« no previous file with comments | « pkg/polymer/lib/elements/polymer-animation/polymer-shake.html ('k') | pkg/polymer/lib/elements/polymer-animation/test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698