Open defixje opened 8 years ago
Is there a way to auto hide the flash alerts after some seconds?
In your .twig file: <div class="flashMessage"> {{ render_flash_alerts() }} </div>
<div class="flashMessage"> {{ render_flash_alerts() }} </div>
In a .js file: $('.flashMessage').delay(5000).slideUp(600);
$('.flashMessage').delay(5000).slideUp(600);
The flash message will be show for 5s and slowly disappear in 600ms
Is there a way to auto hide the flash alerts after some seconds?