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

Commit

Permalink
polymer-overlay: add .animating class when transitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Nov 6, 2013
1 parent 8eb398e commit 0962d6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions polymer-overlay/polymer-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@
animation.apply(),
new Animation(this.target, [{'visibility': 'visible', 'display':'block'}])
], {fill: 'none'});
transition.onend = this.completeOpening.bind(this);
this.target.classList.add('animating');
document.timeline.play(transition);
},
renderOpened: function() {
Expand All @@ -315,6 +317,7 @@
}
},
completeOpening: function() {
this.target.classList.remove('animating');
this.target.classList.toggle('revealed', this.opened);
if (!this.opened) {
this.resetTargetPosition();
Expand Down

0 comments on commit 0962d6c

Please sign in to comment.