I'm using a rjs template to redraw a partial and display some status info in a div after an update. Is it possible to to have that update div do a visual_effect :appear, a pause for a time, then a visual_effect :fade?
Yup.
I have this in application_helper.rb for displaying status responses to ajaxy calls.
page.visual_effect :appear, 'user-message', :duration =>'1' page.delay(10.seconds) do page.visual_effect :fade, 'user-message', :duration => '2' end
chao, sudara
iirc, you can do
page.visual_effect :fade, 'user-message', :duration => '2', :delay =>
'10'
too.
Best, Thomas
Or you could do it simpler:
page.visual_effect :appear, 'user-message', :duration =>1 page.visual_effect :fade, 'user-message', :duration => 2, :delay => 10
Best, Eszter