Skip to content

Releases: alisonmonteiro/change-title-onleave

v0.0.5

18 Jun 17:01
Compare
Choose a tag to compare

Initial release

Usage

new ChangeTitleOnLeave({
  title: 'Hey! Do not forget to read this.',
  timeout: 2,
  onVisible: () => {},
  onHidden: () => {}
})
  • Supports callbacks: onHidden and onVisible
  • timeout is applied for both visibility states transition: hidden and visible (on transition)