You could do something like:
new Effect.Fade(element, { to: 0.1, afterFinish: function () {
Element.setOpacity(element, 0) });
That way it'll fade until it's almost gone, then disappear without
actually dropping the element off the page.
Greg
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Mike Thirlwell (CBJ
Digital
> Ltd)
> Sent: Friday, February 03, 2006 8:58 AM
> To: [email protected]
> Subject: [Rails-spinoffs] Scriptaculous: Newbie question - Effect.fade
>
> Hi there,
>
> Is it possible to do an effect.fade without removing the hidden
document
> from the flow when in becomes invisible?
>
> I have a line of images (initially all invisible)
>
> [] [] [] [] []
>
> And a list of links
>
> - link 1
> - link 2
> - link 3
> - link 4
> - link 5
>
> And what I want to happen is to have the images appear on link
mouseover
> and disappear on mouseout but for the images to maintain their
positions
> on the page. So, for instance, mousing over link 3 would have image 3
> appear thus:
>
> []
>
> And then over link 4:
>
> []
>
> And then over link 1:
>
> []
>
> You get the picture! Is this possible?
>
> Cheers.
>
> Mike
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs