Skip to content

rttmax/screensaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

js screensaver

Do something when there is no interaction ("mousemove", "touchstart") with window.

const mySreensaver = new Screensaver({
  idleTime: 5,
  clearEvents : ['keydown', 'whatEverEvent'],
  onActivation: () => {
    // doWhatever()
  },
  onDeactivation: () => {
    // stopWhatever()
  }
})
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published