<div class="colors">
<div class="circle"></div>
</div>
<script src="https://use.fontawesome.com/749e954855.js"></script>
@color-base: hsl(186, 100%, 46%);
@color-change: fade(@color-base, 10%);
.colors {
display: flex;
justify-content: center;
height: 150px;
.circle {
width: 150px;
height: 150px;
border-radius: 100px;
background: @color-base;
transition: all .6s;
&:hover {
background: @color-change;
}
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.