npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

beautiful-backgrounds

v0.0.7

Published

A collection of customizable web components for creating dynamic, animated backgrounds, featuring a variety of effects including a star field and a digital rain.

Downloads

13

Readme

Beautiful Backgrounds

Build

The "Beautiful Backgrounds" library offers a collection of customizable web components designed to enhance web pages with visually appealing animated backgrounds. Easy to integrate and use, these components are perfect for adding dynamic and interactive elements to your web applications.

EXAMPLES

Features

  • Multiple Background Components: A variety of background components, each offering unique visual effects.
  • Customizable and Interactive: Each component comes with customizable properties to suit different design needs.
  • Responsive and Efficient: Components are responsive to screen size changes and optimized for performance.

Installation

Using npm:

npm i beautiful-backgrounds --save
import { BbStarTrail } from 'beautiful-backgrounds';

In browsers with esm.sh:

<script type="module">
    import { BbStarTrail } from 'https://esm.sh/beautiful-backgrounds';
</script>

Usage

Star Trail

<bb-star-trail
    data-num-stars="567"
    data-star-size-min="0.1"
    data-star-size-max="1.5"
    data-star-speed-min="0.001"
    data-star-speed-max="0.003"
    data-star-color-hue-start="30"
    data-star-color-hue-end="75"
    data-star-color-saturation-start="90"
    data-star-color-saturation-end="90"
    data-star-color-lightness-start="40"
    data-star-color-lightness-end="60"
    data-orbit-radius-min="10"
    data-orbit-radius-max="300"
    data-star-lifespan-min="1000"
    data-star-lifespan-max="50000"
    data-width="500"
    data-height="500"
></bb-star-trail>

Attributes for bb-star-trail

  • data-num-stars: Number of stars to be rendered.
  • data-star-size-min: Minimum size of a star.
  • data-star-size-max: Maximum size of a star.
  • data-star-speed-min: Minimum speed of a star.
  • data-star-speed-max: Maximum speed of a star.
  • data-star-color-hue-start: Starting hue for star color. Should be a value between 0 and 360.
  • data-star-color-hue-end: Ending hue for star color. Should be a value between 0 and 360.
  • data-star-color-saturation-start: Specifies the starting color saturation for star color. Should be a value between 0 and 100.
  • data-star-color-saturation-start: Specifies the ending color saturation for star color. Should be a value between 0 and 100.
  • data-star-color-lightness-start: Specifies the starting color lightness for star color. Should be a value between 0 and 100.
  • data-star-color-lightness-start: Specifies the ending color lightness for star color. Should be a value between 0 and 100.
  • data-radius-min: Minimum radius for star orbit.
  • data-radius-max: Maximum radius for star orbit.
  • data-star-lifespan-min: Minimum lifespan of a star in milliseconds.
  • data-star-lifespan-max: Maximum lifespan of a star in milliseconds.
  • data-width: Width of the star trail component, remove to fit the size of the container
  • data-height: height of the star trail component, remove to fit the size of the container
  • data-background-color: Background color of the canvas element

Digital Rain

<bb-digital-rain
    data-characteras="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    data-font-size="16"
    data-font-color-hue-start="60"
    data-font-color-hue-end="150"
    ata-font-color-saturation-start="90"
    ata-font-color-saturation-end="90"
    ata-font-color-lightness-start="40"
    ata-font-color-lightness-end="60"
    data-speed="1"
></bb-star-trail>

Attributes for bb-digital-rain

  • data-characters: Sets the characters for the digital rain effect.
  • data-font-size: Defines the font size of the falling characters.
  • data-font-color-hue-start: Specifies the starting color hue for the rain. Should be a value between 0 and 360.
  • data-font-color-hue-end: Sets the ending color hue for the rain. Should be a value between 0 and 360.
  • data-font-color-saturation-start: Specifies the starting color saturation for the rain. Should be a value between 0 and 100.
  • data-font-color-saturation-start: Specifies the ending color saturation for the rain. Should be a value between 0 and 100.
  • data-font-color-lightness-start: Specifies the starting color lightness for the rain. Should be a value between 0 and 100.
  • data-font-color-lightness-start: Specifies the ending color lightness for the rain. Should be a value between 0 and 100.
  • data-speed: Controls the falling speed of the digital rain.
  • data-background-color: Background color of the canvas element

ko-fi