Color changing in click.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="glow.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<title>Glowing buttons</title>
<style type="text/css">
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
background: #18191f;
}
ul
{
position: relative;
display: flex;
margin: 10px 0;
}
ul li
{
position: relative;
list-style: none;
}
ul li a
{
display: block;
width: 50px;
height: 50px;
background: #18191f;
line-height: 55px;
text-align: center;
margin: 0 10px;
border-radius: 15px;
box-shadow: -2px -2px 3px rgba(255,255,255,0.05),
3px 3px 3px rgba(0,0,0,0.02)
}
ul li a .fa
{
font-size: 22px;
color: #555;
}
ul li a:hover .fa
{
color: #00F3ff;
text-shadow: 0 0 15px #00F3ff;
}
ul:nth-child(2) li a:hover .fa
{
color: #f00;
text-shadow: 0 0 15px #f00;
}
ul:nth-child(3) li a:hover .fa
{
color: #0f0;
text-shadow: 0 0 15px #0f0;
}
</style>
</head>
<body>
<ul>
<li><a href="#"><i class="fa fa-gift" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-glass" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-bolt" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-heartbeat" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-heart-o" aria-hidden="true"></i></a></li>
</ul>
<ul>
<li><a href="#"><i class="fa fa-gift" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-glass" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-bolt" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-heartbeat" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-heart-o" aria-hidden="true"></i></a></li>
</ul>
<ul>
<li><a href="#"><i class="fa fa-gift" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-glass" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-bolt" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-heartbeat" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-heart-o" aria-hidden="true"></i></a></li>
</ul>
</body>
</html>