Animated chat bubble with typing indicator and smooth entrance effects. Perfect for messaging interfaces and chat applications.
<div class="chat-bubble">Hello!</div>
.chat-bubble {
padding: 15px 20px;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border-radius: 20px 20px 20px 5px;
font-weight: 600;
max-width: 200px;
position: relative;
animation: bubbleIn 0.5s ease-out;
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.chat-bubble::before {
content: '';
position: absolute;
bottom: 0;
left: -10px;
width: 0;
height: 0;
border-style: solid;
border-width: 0 0 15px 15px;
border-color: transparent transparent #667eea transparent;
}
@keyframes bubbleIn {
0% {
transform: scale(0) translateY(20px);
opacity: 0;
}
100% {
transform: scale(1) translateY(0);
opacity: 1;
}
}