Impact: HIGH - Creates realistic chat interfaces with proper bubble styling and animations
Chat Bubble Layout
Use flexbox to align sent messages right, received messages left.Staggered Message Entrances
Messages should appear one by one with slide + fade animations.Why slide from different directions?
Why slide from different directions?
Sent messages slide in from the right (40px), received messages from the left (-40px), mimicking the natural flow of conversation and matching the visual alignment.
Spring Bounce on Bubble Entrance
Add spring physics for organic bubble pop-in effect.The
transformOrigin matches the bubble alignment - sent messages scale from bottom-right, received from bottom-left, creating a natural “pop” effect.Dark Theme Colors (WhatsApp style)

Light Theme Colors (iMessage style)
Key Patterns
Alignment
Alignment
Use This aligns the entire message div, not just the text inside.
justifyContent on the container:Stagger Timing
Stagger Timing
38 frames (~1.3 seconds at 30fps) between messages:Mimics realistic typing and sending pace.
Directional Animations
Directional Animations
Slide direction matches alignment:
Transform Origin
Transform Origin
Scale from the appropriate corner:Sent: bottom-right, Received: bottom-left
Platform-Specific Details
- WhatsApp
- iMessage
- Generic
Colors:
- Sent:
#1f8a70(green) - Received:
#202c33(dark gray) - Background:
#0b141a
16px (highly rounded)Bubble Width: maxWidth: "70%"Tail: Optional, usually omitted for cleaner lookCommon Mistakes to Avoid
Related Skills
Spring Physics
Configure bounce effects
Sequencing
Manage staggered timing
Typography
Add typing indicators