jQuery Plugin For Dynamically Generating Images - SnapRandom

jQuery Plugin For Dynamically Generating Images - SnapRandom
File Size: 4.97
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

SnapRandom is a fancy jQuery plugin that enables you to dynamically generate an images on your webpage using 3 random colors. You can set a variety of options for the image that is generated using data-* attributes.

How to use it:

1. Create a container where you want to generate an image to. Using data-*attributes to customize the image.

<div class="SnapRandom" data-red="64" data-green="200" data-blue="128" data-width="831" data-height="315"></div>

2. Load the latest jQuery library and jQuery SnapRandom Plugin on your web page

<script src="http://code.jquery.com/jquery-latest.js"></script> 
<script src="jquery.imagesloaded.min.js"></script> 

3. Include required jquery.imagesloaded.min.js script for image lazy load

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

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