you can simply use my code to show notification.
tn-box {
width: 360px;
padding: 25px 15px;
text-align: left;
border-radius: 5px;
box-shadow: 0 1px 1px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
opacity: 0.9;
position: fixed;
top: 50px;
color: #fff;
background: #000;
right: 15px;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0.9)";
filter: alpha(opacity=0.9);
cursor: default;
}
and after that to hide the window use
.tn-box {
-webkit-animation: fadeOut 5s linear forwards;
-moz-animation: fadeOut 5s linear forwards;
-o-animation: fadeOut 5s linear forwards;
-ms-animation: fadeOut 5s linear forwards;
animation: fadeOut 5s linear forwards;
}
2
solved How to make css notifications without jQuery? [closed]