Hover to hide border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Border

Description

Hover to hide border

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Typing animation with pure CSS</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

@-webkit-keyframes borderBlink {<!--from   w ww . ja  v a 2  s. c o m-->
   from, to {
      border-color: transparent
   }
   50% {
      border-color: black
   }
}
@keyframes borderBlink {
   from, to {
      border-color: transparent
   }
   50% {
      border-color: black
   }
}
.borderBlink{
   border:1px solid black;
}
.borderBlink:hover {
   -webkit-animation: borderBlink 1s step-end infinite;
   animation: borderBlink 1s step-end infinite;
}


      </style> 
 </head> 
 <body> 
  <div class="borderBlink">
    Border flash on hover 
  </div>  
 </body>
</html>

Related Tutorials