<div class="messenger">
<div class="mesgcircle">
<div class="msgscrol">
<span>Honey we need to talk...</span>
</div>
<div class="mesgload">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
<div class="inspired">
<p>Inspired from <a href="https://dribbble.com/shots/6242469-Notification-Badge-III">Dribbble</a> | <a
href="https://dribbble.com/Volorf">Oleg Frolov</a> </p>
</div>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300);
* {
padding: 0;
margin: 0;
}
body {
background-color: #ffd002;
width: 100%;
height: 100%;
}
.messenger {
background-color: #ffffff;
width: 160px;
height: 160px;
border-radius: 28px;
margin: 10% auto;
}
.mesgcircle {
margin: 30px;
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #0077ff;
float: left;
position: relative;
}
.mesgcircle:after {
left: -3px;
content: '';
border-top: 23px solid #0077ff;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
display: block;
width: 0px;
height: 0;
transform: rotate(40deg);
position: absolute;
top: 82px;
border-radius: 5px;
}
.mesgload {
width: 100%;
height: 20px;
text-align: center;
margin: 40px 0;
float: left;
}
.mesgload span {
width: 11px;
height: 11px;
background-color: #ffffff;
border-radius: 50%;
display: inline-block;
margin: 5px 3px 0;
animation-name: dotone;
animation-duration: 1.8s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.mesgload span:nth-child(2) {
animation-delay: .30s;
}
.mesgload span:nth-child(3) {
animation-delay: .61s;
}
@keyframes dotone {
25% {
transform: translateY(-25px)
}
65% {
transform: translateY(8px)
}
80% {
transform: translateY(0px)
}
}
.msgscrol {
background-color: #ff2a00;
width: 150px;
height: 45px;
border-radius: 25px;
overflow: hidden;
position: absolute;
top: -55px;
right: -50px;
}
.msgscrol span {
font-family: 'Open Sans', sans-serif;
font-size: 28px;
color: #ffffff;
display: block;
white-space: nowrap;
margin: 1px 0;
animation: 4s txtscrl linear infinite;
}
@keyframes txtscrl {
0% {
transform: translateX(130px)
}
100% {
transform: translateX(-290px)
}
}
.inspired {
width: 100%;
text-align: center;
}
.inspired p {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
color: #000000;
}
.inspired a {
color: #000000;
text-decoration: none;
border-bottom: 1px solid #555555;
padding-bottom: 3px;
font-weight: bold;
}
.inspired a:hover {
border-bottom: 1px solid transparent;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.