Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-includes/query.php on line 15

Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-includes/theme.php on line 505

Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-content/plugins/CodeHighlighter/codehighlighter.php on line 42
Ajaxorized » The Image Transition Manager
Ajaxorized

The Image Transition Manager

October 30, 2007

Ajaxorized proudly presents... the Image Transition Manager. The Image Transition Manager is a javascript library based on scriptaculous and prototype. It supports several image transitions, such as fading, appearing, sliding, growing and shrinking and more to come.

While working on a project for a customer, I needed to create a kind of slideshow-like effect for presenting several photos of products. When I started out making this 'effect', I found out that I could use this for much more other projects than just this single one. That is what triggered me to create a nice class out of it, so I could easily implement it into my other projects. After showing my first version to Willem, he did some of his magic and extended my class with some other nifty image transitions and functionalities. That is how our Image Transition Manager was born.

The advantage of our library is the way in which you can implement it in your own projects. While I prefer learning by doing, here is an example:

<ul>
<li><a href="image1.jpg" rel="transition[switchoff]">image1.jpg</a></li>
<li><a href="image2.jpg" rel="transition[slidedown]">image2.jpg</a></li>
<li><a href="image3.jpg" rel="transition[blinddown]">image3.jpg</a></li>
</ul>

As you can see, no inline-javascript is used. Just add a 'rel'-attribute to the anchor and the Image Transition Manager will do the rest. Finally, add a holder for the images and instantiate the class:

<div id="holder" style="border: 5px solid #999999; width: 640px; height: 480px; float: left"></div>

oTransition = new Transition( 'holder', 'image1.jpg' );

That is all to create some cool-looking effects. For more information and to download this library, check out the project page of the Image Transition Manager.

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Scriptaculous, Prototype, Javascript | Martijn @ 3:56 pm |

No Comments

RSS feed for comments on this post. TrackBack URL

No comments yet.

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word