code: function _Overlay_baseEndAnimateCommands(hideCommands) {
                      if (this._disposed) {
                          return;
                      }
  
                      // Update us
                      var count;
                      for (count = 0; count < hideCommands.length; count++) {
                          // Force us back into our appbar so that we can show again correctly
                          hideCommands[count].style.position = "";
                          hideCommands[count].style.top = "";
                          hideCommands[count].style.left = "";
                          hideCommands[count].getBoundingClientRect();
                          // Now make us really hidden
                          hideCommands[count].style.visibility = "hidden";
                          hideCommands[count].style.display = "none";
                          hideCommands[count].style.opacity = 1;
                      }
                      // Done animating
                      this._element.winAnimating = "";
  
                      this._endAnimateCommands();
  
                      // Might be something else to do
                      this._checkDoNext();
                  }
docs: Once animation is complete, ensure that the commands are display:none and check if there's another animation to start.