ryanmarc / doubleRainbow

The Double Rainbow jQuery Plugin - adds a sweet double rainbow over any image or set of images. Inspired by: http://www.youtube.com/watch?v=OQSNhk5ICTI

Home Page:http://www.ryanmarc.com/doublerainbow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copyright 2011, Ryan Edgell (http://www.ryanmarc.com/)

TO USE:
First include jQuery

Second, include the doubleRainbow plugin:
<script type='text/javascript' src='<path_to_js>/jquery.doublerainbow.js'></script>

Third, copy the file "rainbow.gif" from the images folder to your images folder and update the path to the image in the js file if needed.

Fourth, in the <head> of your html include the js from the example below.

Finally, add rel="rainbow" attribute to any images you want to have the double rainbow.

EXAMPLE:
<script type='text/javascript'>
	$(function() {
		$(window).load( function() {
			$('img[rel="rainbow"]').doubleRainbow();
		});
	});
</script>

About

The Double Rainbow jQuery Plugin - adds a sweet double rainbow over any image or set of images. Inspired by: http://www.youtube.com/watch?v=OQSNhk5ICTI

http://www.ryanmarc.com/doublerainbow

License:MIT License


Languages

Language:JavaScript 100.0%