I have successfully implemented a fadeIn CSS animation, but I am facing an issue where the block disappears abruptly when I click the close button. Is there a way to reverse the animation when the user clicks the "close" link (which triggers javascript:history.back())?
#showme:target {
display: block;
position: fixed;
width: 100%; height: 100%;
top: 0; left; 0;
background: lightblue;
-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
-moz-animation: fadein 1s; /* Firefox < 16 */
-ms-animation: fadein 1s; /* Internet Explorer */
-o-animation: fadein 1s; /* Opera < 12.1 */
animation: fadein 1s;
}