I currently have a CSS
code that triggers a message box through media query when the screen is resized to a specific size. I am looking for a way to make the message box disappear automatically after 5 seconds.
Do you have any suggestions on how to achieve this using AngularJS
?
CSS:
@media all and (max-width: 1024px), all and (max-height: 760px) {
div#bestview {
display: block;
position:fixed;
z-index: 9999; /* above everything else */
top:0;
left:0;
bottom:0;
right:0;
background-image: url(../img/transpBlack75.png);
}
}
HTML:
<div id="bestview">The selected browser size is not optimal for.....</div>