Btn Blub
by Andrey Izman
HTML
<div class="blob-effect">
<span></span>
<span></span>
<span></span>
<div class="div-container">
<a href="#">Hover</a>
</div>
</div>
CSS
body {
background: #333;
}
.blob-effect {
position: relative;
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
}
.blob-effect span:nth-child(1) {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border: 2px solid #a9ff68;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: rotate-blob 5s linear infinite;
}
.blob-effect:hover span:nth-child(1) {
background: #d76bb1;
border: none;
}
.blob-effect span:nth-child(2) {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border: 2px solid #a9ff68;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: rotate-blob 4s linear infinite;
}
.blob-effect:hover span:nth-child(2) {
background: #f192d0;
border: none;
}
.blob-effect span:nth-child(3) {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border: 2px solid #a9ff68;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: rotate-blob2 10s linear infinite;
}
.blob-effect:hover span:nth-child(3) {
background: #f06ec294;
border: none;
}
@keyframes rotate-blob {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes rotate-blob2 {
0% {
transform: rotate(360deg);
}
100% {
transform: rotate(0deg);
}
}
.div-container {
position: relative;
padding: 40px 60px;
color: #fff;
text-align: center;
transition: 0.5s;
z-index: 10000;
}
.div-container p {
color: #fff;
}
.div-container a {
position: relative;
display: inline-block;
margin-top: 10px;
border: 2px solid #fff;
padding: 6px 18px;
text-decoration: none;
color: #fff;
font-weight: 600;
border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}
.div-container a:hover {
background: #fff;
color: #333;
}