<div id="container">
<div class="liquid-drops">
<div class="drop1"></div>
<div class="drop2"></div>
</div>
<div class="falling-drops"></div>
<div class="tube">
<div class="liquid"></div>
<div class="drops"></div>
</div>
</div>
*{
margin: 0;
padding: 0;
}
body{
background: #333739;
}
#container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.tube{
position: relative;
width: 65px;
height: 250px;
margin: 80px auto 0;
background: #787d7f;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
}
.tube:before{
content: "";
position: absolute;
width: 80px;
height: 25px;
top: 0px;
left: -8px;
background: #d1d3d0;
border-radius: 2px;
}
.liquid{
position: absolute;
background: #6fc93c;
bottom: 0;
width: 65px;
height: 135px;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
}
.liquid:before{
content: "";
position: absolute;
width: 65px;
height: 50px;
background: #b4e54f;
top: -20px;
left: 0px;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
}
.drops:before{
content: "";
position: absolute;
width: 12px;
height: 45px;
background: #b4e54f;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
top: 120px;
left: 50px;
}
.drops:after{
content: "";
position: absolute;
width: 12px;
height: 45px;
background: #b4e54f;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
top: 110px;
left: 35px;
}
.liquid-drops{
position: relative;
top: 60px;
left: 5px;
width: 45px;
height: 45px;
animation: spiner 11s ease-in-out infinite;
transform-orgin: center;
}
.liquid-drops .drop1{
position: absolute;
width: 12px;
height: 12px;
background: #b4e54f;
top: 0;
left: 0px;
border-radius: 50%;
}
.liquid-drops .drop1:before{
content: "";
position: absolute;
width: 12px;
height: 12px;
background: #b4e54f;
top: 0;
left: 35px;
border-radius: 50%;
}
.liquid-drops .drop2{
position: absolute;
width: 12px;
height: 12px;
background: #b4e54f;
bottom: 0;
left: 0px;
border-radius: 50%;
}
.liquid-drops .drop2:before{
content: "";
position: absolute;
width: 12px;
height: 12px;
background: #b4e54f;
bottom: 0;
left: 35px;
border-radius: 50%;
}
.falling-drops{
width: 8px;
height: 8px;
border-radius: 50%;
background: #b4e54f;
position: relative;
top: 63px;
left: 28px;
z-index: 1;
opacity: 0;
animation: drops 2.6s ease-in-out 2.8s infinite;
}
@keyframes spiner{
0%{
transform: rotate(0deg);
animation-timing-function: ease-in-out;
}
25%{
transform: rotate(45deg);
animation-timing-function: ease-in-out;
}
50%{
transform: rotate(135deg);
animation-timing-function: ease-in-out;
}
75%{
transform: rotate(225deg);
animation-timing-function: ease-in-out;
}
90%{
transform: rotate(310deg);
animation-timing-function: ease-in-out;
animation-delay: 0.5;
}
100%{
transform: rotate(360deg);
animation-timing-function: ease-in-out;
}
}
@keyframes drops{
0%{
opacity: 1;
top: 63px;
}
100%{
opacity: 0.5;
top: 175px;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.