Effects queues

ive had this problem as well. the fade and the appear are happening on top of each other and the element seems to get confused and dissapears at the end instead of staying visible. the only solution i’ve found is to write it in raw JS; whether by using the << “new Effect(…” method in my controller/rjs template or simply coding it manually in the view as inline JS.

id certainly be interested in hearing a better solution!

ed

def change_image2
render :update do |page|
page.visual_effect :fade, “testimage2”, :duration => 0.5
page.delay 0.5 do
page.visual_effect :appear, “testimage2”, :duration => 0.5

end
end
end