Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-animation: hack to allow selecting animated elements from the
Browse files Browse the repository at this point in the history
outside
  • Loading branch information
Yvonne Yip committed Dec 12, 2013
1 parent 56556ea commit bc39904
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions polymer-animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@
return this.animation;
},
makeSingleAnimation: function(target) {
// XXX(yvonne): for selecting all the animated elements.
target.classList.add('polymer-animation-target');
return new Animation(target, this.animationEffect, this.timingProps);
},
makeAnimation: function() {
Expand Down Expand Up @@ -233,6 +235,11 @@
this.target = findTarget(this.targetSelector, this);
}
},
targetChanged: function(old) {
if (old) {
old.classList.remove('polymer-animation-target');
}
},
get timingProps() {
var props = {};
var timing = {
Expand Down

0 comments on commit bc39904

Please sign in to comment.