Looking for a way to create a hover effect that lasts for a specific duration before stopping. I want the background to appear for just 1 second, even if the mouse remains hovering. Preferably using CSS or JavaScript only, without jQuery.
To see my current code, check out this JSFiddle.
#social {
min-width: 350px;
font-size: 11pt;
text-align: center;
width: 60%;
margin: auto;
word-spacing: 25pt;
}
#social a {
padding: 4px 9px 4px 9px;
color: #999999;
text-decoration: none;
}
#social a:hover {
color: transparent;
background: red;
}