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

yaco

v1.1.0

Published

YACo - Yes Another COlor! jQuery plugin who changes an element's background/color/border on scrolling and more!

Downloads

54

Readme

YACo - Yes Another COlor !

npm version

Change background / color / border on scroll and more !

Just a simple and light background/color/border changer jQuery plugin.

ScreenShot

Just try it

Author: Thomas Brodusch

Version

1.1.0 "Ara Ararauna" - (13 november 2014)

Workflow

## 1.1.0 - "Ara Ararauna"
	- Optional linking colors to particular elements. When you reach a certain div, the background color change ! 
	you can define a div by add in html markup of the specific div: 'data-yaco=true' (and associate a color) 'data-color-yaco="#22A7F0" '

Installation

  1. Load jQuery
  1. Load YACo.js

npm install yaco

	<script src="../src/jquery.yaco.js"></script>
  1. Define your "YACo div" (don't forget to set "data-yaco" at "true", and define a color of your choice in "data-yaco-color" !)
 <div id="firstDiv" data-yaco="true" data-yaco-color="#22A7F0"></div>
 <div id="secondDiv" data-yaco="true" data-yaco-color="#6C7A89"></div>

4.Let YACo do the rest !

<script type="text/javascript">
	/*  Default behaviour of YACo - Change current page's background-color when reach specific div on scroll !
    *   Works with data attributes in html markup, easy as 1,2,3 !
    *   Be sure you have defined a yaco div to reach. (ex: [data-yaco="true"] )
    *   Be sure you have defined the changed color when the div is reach. (ex: [data-yaco-color="black"])
    */
        $('html').yaco();
	// If you want to use YACo with some specifics options, on a specific element:
	*	DON'T FORGET to set 'default' parameter to 'false'
	*/
			$('#anotherDiv').yaco({
				default: false,
				change: ['border','color'],
				colors: ['#3498db','#9b59b6','#34495e'],
				delay: 0.8,
				transition: 'ease'
			});
	</script>

Options

default: (boolean) - Enable/disable default behaviour of YACo.

(ex:false)

change: (array) - Apply the change on background/color/border

(ex:['background', 'border'])

colors: (array) - Pass the set of colors you want to use

(ex: ['#1abc9c','#16a085','#3498db'])

excludes: (array) - You want to excludes some colors

(ex: ['#1abcd4','#16a085'])

delay: (float)

(ex: 0.7)

transition: (string) - Css transition

(ex:'ease')

random: (boolean) - You want a random set of colors ? Set it to true.

(ex: true)