        this.cancelAnimation();
        this.playAnimation('entry');
      },
      hide: function() {
        this.opened = false;
        this.cancelAnimation();
        this.playAnimation('exit');
      },
      _onNeonAnimationFinish: function() {
        if (!this.opened) {
          this.style.display = 'none';
        }
      }
    });
  </script>
</dom-module>
