jQuery Plugin To Change Background Colors On Scroll - Color Scroll

File Size: 4.53 KB
Views Total: 5045
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin To Change Background Colors On Scroll - Color Scroll

Color Scroll is a super simple and easy jQuery plugin that changes the background colors of your web page when scrolling down or up.

How to use it:

1. Load the jQuery javascript library at the bottom of the html document.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

2. Load the jQuery.colorscroll.js script with ID of 'colorScroll' in the document, after jQuery library.

<script src='jQuery.colorscroll.js" id="colorScroll"></script>

3. Specify the background colors you would like to use in the javascript by using data-colors attribute. The RGB colors must be separated by ":".

<script src="jQuery.colorscroll.min.js" id="colorScroll" data-colors="255,160,147:236,105,255:63,183,255"></script>

4. That's it. Scroll down the demo page to see it in action.

<script src="jQuery.colorscroll.min.js" id="colorScroll" data-colors="255,160,147:236,105,255:63,183,255"></script>

This awesome jQuery plugin is developed by arkmuntasser. For more Advanced Usages, please check the demo page or visit the official website.