JSPM

hyper-random-background

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q36815F
  • License MIT

Set background with random images every time interval

Package Exports

  • hyper-random-background
  • hyper-random-background/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyper-random-background) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hyper-random-background

Set background with random images every time interval.

Usage

Add to ~/.hyper.js:

module.exports = {
  ...
  config: {
    ...
    backgroundColor: 'rgba(0, 0, 0, 0.9)', // It is recommended to add transparency to default backgroundColor
    ...
    backgroundImage: {
      folder: "/home/remisiki/Pictures/terminal-background-image", // Full path to where images are stored
      overlayColor: "rgba(0, 0, 0, 0.7)", // Overlay color in front of the image, default: rgba(0, 0, 0, 0.7)
      interval: 10, // Time interval in second to change background, default: 600
      fade: true, // Whether use fade effect when switching background, default: true
      blur: "5px", // Size of blur effect, default: "0px"
    },
  },
  ...
  plugins: [
    ...
    "hyper-random-background",
  ],
  ...
}