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

acidd

v1.0.3

Published

color drifting frontend utility

Downloads

5

Readme

NPM

acidd

Color drifting frontend utility

Description

Randomly drifts the RGB values of the 'color' and 'backgroundColor' properties for all DOM elements containing the 'acidd' and a 'bgc-' and/or 'clr-' class where the * is an integer value (eg: bgc-0, clr-1). Multiple elements can be assigned the same 'bgc-' or 'clr-' class and will be assigned the same colors as their RGB values begin to drift. For this reason it is recommended that the elements with the same initial backgroundColor or color value be assigned the same bgc-* or clr-* class. Acidd will scan the DOM before randomizing in order to obtain the initial RGB values for all 'acidd' elements.

Install

Run the following command from the root of the web directory:
npm install acidd

Add the following line in your html file:
<script src="./node_modules/acidd/acidd.js"></script>

Usage

  • To drift backgroundColor values for an element add the following classes: acidd bgc-0, acidd bgc-1, acidd bgc-2, etc.
  • To drift color values for an elements add the following classes: acidd clr-0, acidd clr-1, acidd clr-2, etc.
  • To drift both color and backgroundColor values for an element add the following classes: acidd bgc-0 clr-2, acidd bgc-2 clr-13, etc.

Example

  • I have an example page running this script here.

Credits

  • Back in the early 90s there was a DOS program called 'acid' that we were spreading around with floppies. (Or was it called Glow? Look, that was almost 30 years ago and I remember there were 3 similar proggies going around, acid, glow, and trip and I don't remember which one did which. If you actually have any background on these programs please share!) I have no idea who wrote it or where it came from but when you executed it as a TSR it would start to phase the R,G, & B values for the monitor. That is if you had a color monitor because those weren't ubiquitous yet back then. You could execute acid before launching win.com and then your Windows 3.1 or Win95 environment would phase as well.
  • Around 10 or 15 years ago I remembered that little app and wrote a GreaseMonkey userscript to emulate it in a web environment. Remember GreaseMonkey? Those were crazy times back before people worried about browser security I guess. The userscript site is gone now but you can still find it on the mirror: https://userscripts-mirror.org/scripts/show/126687. Anyways, I got to thinking about that and decided to resurrect it, again.