Wilq32.PhotoEffect
 

Go back to main page: http://wilq32.blogspot.com/

PhotoEffect class written in pure Javascript.

Actual Version: 0.4

Last Relase: 14.01.2009

Author: Wilq32 (Pawel Witkowski) wilq32@gmail.com


Description:

This is a class inspired by http://www.netzgesta.de/cvi/ and their great http://www.netzgesta.de/instant/ instant.js class of images being little rotated. This class uses excanvas - google implementation that solves problem with canvas in IE. In future versions I planing little animation on mouseover/mouseout.


Use:

Just put Wilq32.PhotoEffect into your class in your image:

<img src="image.jpg" class="Wilq32.PhotoEffect(10,10,5)">

Parameters:

Wilq32.PhotoEffects(width,height,angle)

- width - width of border
- height - height of border
- angle - rotation angle

Known Bugs:

Using <P> around image in Internet Explorer makes unproper behaviour, to solve this put image in <div><img></div> if you plan to use <p> around your img.

Change Log:

- version 0.4:

- Added rotating animation on mouseover (a little glitchy but working)

        - version 0.3:

                - solved problem with counting images on page

        - version 0.2:

                - solved problem with event onload, thanks to qbolec for finding bug

- version 0.1:

- Main relase,