1.0.3 • Published 4 years ago

text-screensaver v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Text Screensaver

A simple text screensaver that resembles with Windows XP screensaver with text.

Install

  • npm install text-screensaver
  • yarn add text-screensaver

Example

Play with sandbox example here: Demo

Options

You can pass following parameters to Text Screensaver in order to generate custom screensaver box

AttributesValues
text / String'Hello World'
speed / NumberSpeed of text in milliseconds
options / ObjectSee options object configuration below

You can pass following parameters to Options object in order to generate custom screensaver box

AttributesValues
width / String300px or 100vw
height / String300px or 100vh
background / Stringcontent-box radial-gradient(crimson, skyblue)
text / String / CSSTextSee value below

Example of CSSText fot text attribute:

margin: 0;
color: red;
line-height: 1;
letter-spacing: -1.4px;
font-size: 3rem;
font-weight: 100;
font-family: 'Arial', sans-serif;
display: inline-block;

Events

  • create() method return HTML element
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago