Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
beautiful-backgrounds
Advanced tools
A collection of customizable web components for creating dynamic, animated backgrounds, featuring a variety of effects including a star field and a digital rain.
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.
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>
<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>
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 containerdata-height
: height of the star trail component, remove to fit the size of the containerdata-background-color
: Background color of the canvas element<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>
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 elementFAQs
A collection of customizable web components for creating dynamic, animated backgrounds, featuring a variety of effects including a star field and a digital rain.
The npm package beautiful-backgrounds receives a total of 13 weekly downloads. As such, beautiful-backgrounds popularity was classified as not popular.
We found that beautiful-backgrounds demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.