I wonder...

Is this REALLY something that needs a plugin? It's obviously done already,
but just do it in Photoshop or the Gimp or something. You're already loading
the image, why waste browser processing time/speed with something that could
be static.

My opinion is that if it doesn't increase functionality or do something for
you that would take forever manually, why bother with a plugin?

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of George Adamson
Sent: Saturday, October 14, 2006 4:51 AM
To: discuss@jquery.com
Subject: Re: [jQuery] [ANN] JReflection



Had a play with this. It adds a reflection below image elements. The effect
crops up in numerous other plugins so it is nice to have this wrapped in a
plugin of its own.

Took a moment to figure it out because I applied it to   elements at first
and got nothing.

Re-read/figured that you apply it to elements that contain   elements. Works
well after that! probably worth making it work directly on img elements too
eg $("#myImage").Reflection().

A couple of other points:
 - How do you pass the options in? Other plugins do it like this:
.Reflection(options)
 - Wrapping the image in a div is an accepted way of doing this but it does
interfere with any positioning etc that the image may have on it. I've not
seen a really good solution for this that tackles both positioned and
non-positioned images. Would it be practical to leave the image as it is and
place the reflection in a positioned div just below the image? (You may then
need to make space for the reflection otherwise it will cover elements below
the image. Extending the bottom margin of the image is a possiblity in some
scenarios.)
 - It assumes a vertical reflection.  An option for horiz reflection would
be great but I realise you may then need extra options for left and right
(then perhaps separate width & opacity options for the horiz reflection and
then top and bottom too)
 - IE can reflect other elements. Can the canvas element reflect other
elements too (text etc) ?
 - The defaults hash may clash with other plugins because it is global (just
needs "var" in front of it)

George


Rey Bango-2 wrote:
>
> Hi Abdur. What exactly does the plugin do? Do you have a demo?
>
> Rey
>
> Abdur-Rahman Advany wrote:
>> Hi,
>>
>> I have wrapped reflection.js in a jquery style function so you can just
>> do $(#div with images of images).Reflection() and you can pass height
>> and opacity as options.
>>
>> http://jquery.com/docs/Plugins/JReflection/
>>
>> I will try to make the code more jQuery style and compact...
>>
>> I need to add a way so I can choose what array of object jQuery should
>> return, currently the images are packed inside a div (containing both
>> image and reflection) and the container(s) is returned. I will try to
>> add a option or a selector to make this more controllable...
>>
>> Abdul
>>
>> _______________________________________________
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

--
View this message in context:
http://www.nabble.com/-ANN--JReflection-tf2440938.html#a6808996
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to