Skip to content

Instantly share code, notes, and snippets.

@ahkohd
Created April 9, 2020 09:55
Show Gist options
  • Save ahkohd/784b440bb06877b9ea78cf7b9210b415 to your computer and use it in GitHub Desktop.
Save ahkohd/784b440bb06877b9ea78cf7b9210b415 to your computer and use it in GitHub Desktop.
//...
// If you want to stop fade-out at will.
// Just clear the fade out time interval.
window.clearInterval(fadeOutWindowIntervalRef);
// If you want to stop fade-in at will.
// Just clear the fade in time interval.
window.clearInterval(fadeInWindowIntervalRef);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment