Auto hide
defixje opened this issue · comments
E Dirks commented
Is there a way to auto hide the flash alerts after some seconds?
Porygoon commented
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