Here is a code snippet:
<div class="main">
<a href="" target="_blank">
a
</a>
<a href="" target="_blank">
b
</a>
<a href="" target="_blank">
c
</a>
<a href="" target="_blank">
d
</a>
</div>
<style>
.main a {
background: blue;
width: 50px;
height:50px;
display: inline-block;
color: #ffffff;
}
.main a:hover {
}
</style>
I would like to adjust the opacity of the blue when hovering over each box to .5
, resulting in a visual effect similar to this
https://i.sstatic.net/9nP6s.png
Can this be achieved using CSS?