Auto close the warning/success/failure message

Hi everyone,

I’d like to this message will close after 5 sec, or the time that I set, because if you dont click the “x” close, it always show.

I want to make this in all the project, NO in one page.

Thanks.

image