FlashAlertBundle icon indicating copy to clipboard operation
FlashAlertBundle copied to clipboard

Auto hide

Open defixje opened this issue 8 years ago • 1 comments

Is there a way to auto hide the flash alerts after some seconds?

defixje avatar Jul 15 '16 08:07 defixje

In your .twig file: <div class="flashMessage"> {{ render_flash_alerts() }} </div>

In a .js file: $('.flashMessage').delay(5000).slideUp(600);

The flash message will be show for 5s and slowly disappear in 600ms

Porygoon avatar Jan 02 '17 08:01 Porygoon