imageCloud

imageCloud
imageCloud
Table of Contents:
Current version
Latest update
2.0
02/05/2011

description

ImageCloud is a jQuery plug-in based on Google's Doodle designed for the Christmas holidays on 2010. "Basically" it was a bunch of frames with images that, when you mouse over, grow to their real size:

Google Doodle

I saw it and I said to myself "Wow! This is pretty cool"... and it seems that I was not the only thinking that (You can watch a video of it working here). I also thought, it would be great to have something like that on my Web site, so I started looking for it online, but I didn't find anything. So I decided to do it myself :)

ImageCloud, takes all the images within a DIV tag (it could be any other though) and creates random smaller frames that grow when the mouse goes over them, and shrink when the mouse goes out. This frames are randomly positioned so you get a different imageCloud every time that you reload the page!

Although it is fully functional and working, it is far from finished yet (I wished it looked exactly like the Google Doodle). There are still a lot of things to develop, so if you decide to use it, I will really appreciate if you send me a message with any bug or thing that you notice.

options

The imageCLoud plug-in is highly customizable. You can provide different parameters:

<script type="text/javascript">
   $(document).ready(function() {
      $("#Div1").imageCloud({
         width: 600,
         height: 400,
         color: '#aabb44',
         link: true,
         speed: 150,
         borderSize: 3,
         borderStyle: "groove",
         borderRadius: 3
      });
   });
</script>

<div id="Div1">
   <img src="..." width="..." height="..." title="http://www.alvaromontoro.com" />
   <img src="..." width="..." height="..." title="http://www.muzaw.com" />
   ...
</div>

examples

As a picture says a thousand words, you can see a working example here. You can use imageCloud in different ways:

<div class="imageCloud">
   <img src="..." width="..." height="..." />
   <img src="..." width="..." height="..." />
   ...
</div>
<script type="text/javascript">
   $(document).ready(function() {
      $("#Div1").imageCloud({
         ...options...
      });
   });
</script>

<div id="Div1">
   <img src="..." width="..." height="..." />
   <img src="..." width="..." height="..." />
   ...
</div>

IMPORTANT NOTICE: Webkit powered browsers (ie: Chrome and Safari) need the images to have the width and height attributes set for imageCloud to work.

download

Click here to download the JavaScript files of imageCloud.

Click here to download the JavaScript files of imageCloud with the images and a demo.

updates

Here there is a list of the different updates and versions that the imageCloud has gone through since I started developing it in January 2011:

Date Version Changes and comments
02/05/2011 v2.0
  • Uses one DIV with an image inside (instead of one with a background image)
  • Does not use the backgroundPosition jQuery plug-in anymore.
  • Applies the CSS within the JS file, so the CSS file is no longer required
  • Corrects the bug with the background-position in all the cases and all the browsers.
  • More options to customize the effect: speed, border size, border style, border radius
  • Reduced to a single file smaller in size
  • A mini-version is included (5K instead of 13K).
01/22/2011 v1.0
  • Uses one DIV instead of two for displaying the images.
  • It uses the backgroundPosition jQuery plug-in by Alexander Farkas, that fixes the issue of the plug-in in Internet Explorer.
  • Corrects some cases of the issue of the image moving one pixel up/left.
     
  • To Do:
    • Add more options (border width, speed...)
    • Fix completly the pixel that the image moves up/left in some cases
    • Write a better manual
01/21/2011 v0.2
  • The first real jQuery version of imageCloud is developed.
  • It allows to add imageCloud to any div with images inside, also options can be chosen. Two versions are released: the original file to develop and a mini version.
     
  • To Do:
    • Add more options (border width, speed...)
    • Fix the pixel that the image moves up/left in some cases
    • Write a better manual
12/29/2010 v0.1
  • The first mini version of imageCloud is developed.
  • It is not really using jQuery, just a static version.