ericbock / Noisy

A jQuery plugin that adds random noise to the background of a given element.

Home Page:http://rappdaniel.com/noisy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Noisy is a jQuery plugin that adds random noise to a given element.

Here's an example:

$('body').noisy({
    intensity: 0.9, 
    size: 200, 
    opacity: 0.08,
    fallback: 'fallback.png',
    monochrome: false
});

But since all parameters are optional you can just use it like this:

$('body').noisy();

You can try the interactive demo here.

Installation

Just download the repository and link to the local minimized script

<script src="noisy/jquery/jquery.noisy.min.js"></script>

Or link via cdnjs.com

<script src="http://cdnjs.cloudflare.com/ajax/libs/noisy/1.0/jquery.noisy.min.js"></script>

What's wrong with using an image?

Bandwidth cost

Due to the random nature of background images with a noisy overlay, compression usually isn't very effective. With this 1 KB script you can generate images up to 300 KB without loading for even a second. Saving bandwidth costs and loading time.

Development speed

Trying out an image with a different noise opacity involves a much smaller amount of steps by just updating a parameter than changing and saving the image in Photoshop.

Contact

I'd be flattered if you'd flattr this :)

Flattr this

If you have any questions or suggestions that doesn't fit GitHub, send them to @DanielRapp

About

A jQuery plugin that adds random noise to the background of a given element.

http://rappdaniel.com/noisy/

License:MIT License


Languages

Language:JavaScript 100.0%