1.3.8 • Published 2 years ago

@ftge/use-arena-screensaver v1.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

useArenaScreensaver 🌐

A simple hook that will overlay a screensaver of images from an are.na 🌐 channel when users of your site become idle.

Usage

Installation 🌱

npm i use-arena-screensaver

or

yarn add use-arena-screensaver

Importing

import useArenaScreensaver from 'use-arena-screensaver'

Options

optiontypedescriptionexample
timeoutnumberTime a user needs to be idle on site before screensaver becomes active1000 * 60 * 2
timeBetweennumberTime between images appearing once screensaver is active500
arenaSlugstringSlug of the are.na channel you want the screensaver to pull fromthings-i-saved-to-my-camera-roll
backgroundOpacitynumberhow dark the background tint should be0.4

Example

Using this channel that has the slug rocks-xxbfv_ntyau

import useArenaScreensaver from 'use-arena-screensaver';

function App() {
  useArenaScreensaver({ arenaSlug: "rocks-xxbfv_ntyau", timeout: 1000 * 60 * 5 });
  return (
    ...
  );
}

Screen Shot 2022-05-16 at 4 48 55 PM

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago