With the below CSS i am trying to hide the div after 5 seconds. But it works only with Chrome. Problem: It will not work with IE and Firefox, It will hide the div but space remains. please help.
<div class="success">Successfully saved</div> .success { -webkit-animation: seconds 1.0s forwards; -webkit-animation-iteration-count: 1; -webkit-animation-delay: 5s; animation: seconds 1.0s forwards; animation-iteration-count: 1; animation-delay: 5s; position: relative; } @-webkit-keyframes seconds { 0% { opacity: 1; } 100% { opacity: 0; left: -9999px; position: absolute; } } @keyframes seconds { 0% { opacity: 1; } 100% { opacity: 0; left: -9999px; position: absolute; } }
<div class="success">Successfully saved</div> .info, .success, .warning, .error, .validation { -webkit-animation: seconds 1.0s forwards; -webkit-animation-iteration-count: 1; -webkit-animation-delay: 5s; animation: seconds 1.0s forwards; animation-iteration-count: 1; animation-delay: 5s; position: relative; } @-webkit-keyframes seconds { 0% { opacity: 1; } 100% { opacity: 0; left: -9999px; position: absolute; } } @keyframes seconds { 0% { opacity: 1; } 100% { opacity: 0; left: -9999px; position: absolute; } }
-webkit-
-moz-
$(document).ready(function () { setTimeout(function() { $('.success').slideUp("slow"); }, 5000); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)