Can we  just do `if (self.isShown) {` here, and move `this.isShown = true;` above the requestAnimationFrame?