setOpacity() ready for criticism

3 views
Skip to first unread message

Peter Michaux

unread,
Dec 8, 2006, 9:46:29 PM12/8/06
to forkjav...@googlegroups.com
Hi,

Setting opacity is a mess. I think I have a best possible version and
I am ready to put this version up for criticism. Please take a look.

http://forkjavascript.org/setOpacity.html

This is a combination of the good parts of Scriptaculous and Yahoo! UI.

I would like confirmation if it is style.KhtmlOpacity or
style.KHTMLOpacity for Safari 1.1 but can't find anyone with that
version.

In some early versions of Firefox < 1.5 the user will see a flash when
the opacity is changed to 1.0 because some "framing" is removed from
the element. I'm not very concerned as this was an early version of
Firefox probably already flushed from the market. I also can't
recreate the effect on my computer because I think it is too quick on
the redraw. If a developer wants to avoid this they simply animate
only up to 0.999.

The Fork opacity setting documentation will come with a healthy
warning that a web page should not depend on opacity for function and
opacity should be used along with other effects for a polished looking
website for those browsers with opacity support.

Peter

Reply all
Reply to author
Forward
0 new messages