Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div class="myclass">  
<a href="">Выделяют виды норм:</a>
  </div>
  
  <a href="">Выделяют виды норм:</a>
  
</body>
</html>
 
.myclass a{
  color: #e74c3c;
  position: relative;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  -webkit-transition: all .3s linear;
  -moz-transition: all .3s linear;
  transition: all .3s linear;
}
.myclass a:hover{
  color: #222;
}
.myclass a:before, a:after{
  content: '';
  background: #e74c3c;
  position: absolute;
  width: 0;
  height: 2px;
  -webkit-transition: all .3s linear;
  -moz-transition: all .3s linear;
  transition: all .3s linear;
}
.myclass a:before{
  top: 0;
  left: 0;
}
.myclass a:after{
  top: 100%;
  right: 0;
}
.myclass a:hover:before, a:hover:after{
  width: 100%;
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers