View Full Version : Image fade without IE filters?
]|V|[agnus
10-04-2004, 07:25 PM
Is this possible? I did some searching and the only solutions I found involved use of IE-only filters and such.
brothercake
10-04-2004, 08:48 PM
In IE you have filter:opacity (as you know) which (iirc) translates to object.filters['opacity'] or you can reference it by its index in the filters collection as object.filters[n]
In moz you have -moz-opacity which is object.style.MozOpacity and in safari you have -khtml-opacity which is object.style.KhtmlOpacity
The standard property (implemented by very recent mozilla builds) is opacity, which (I guess) would translate to object.style.opacity
So, given their property names, you can animate them in the DOM.
]|V|[agnus
10-04-2004, 08:55 PM
Grr... why... why... why oh why must things be this way... *EXASPERATED SIGH*
Thanks bro'cake.
Willy Duitt
10-04-2004, 09:05 PM
Yea instead of jumping thru all of those browser filter tricks...
You may find more joy in placing the image as an element background image and create another image the same hieght with the width much larger and going from transparent until it reaches the opacity you desire and then horizontaly scroll this image over the top of the underlying image...
.....Willy
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.