Animation Library
UI Animations
Copy-paste CSS and Tailwind animations. Hover to preview, click to copy.
Slide Fill
Background slides in from left on hover
.btn-slide-fill {
position: relative;
padding: 10px 24px;
border: 1px solid #6C63FF;
border-radius: 8px;
color: #6C63FF;
background: transparent;
font-weight: 600;
overflow: hidden;
cursor: pointer;
transition: color 0.35s ease;
}
.btn-slide-fill::before {
content: '';
position: absolute;
inset: 0;
background: #6C63FF;
transform: translateX(-100%);
transition: transform 0.35s ease;
z-index: -1;
}
.btn-slide-fill:hover { color: #fff; }
.btn-slide-fill:hover::before { transform: translateX(0); }Glow Pulse
Pulsing neon glow on hover
.btn-glow-pulse {
padding: 10px 24px;
border-radius: 8px;
background: #6C63FF;
color: #fff;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-glow-pulse:hover {
box-shadow: 0 0 0 4px rgba(108,99,255,0.25), 0 0 20px rgba(108,99,255,0.5);
transform: translateY(-2px);
}Scale Bounce
Springy scale on hover with shadow depth
.btn-scale {
padding: 10px 24px;
border-radius: 8px;
background: linear-gradient(135deg, #6C63FF, #8b5cf6);
color: #fff;
font-weight: 600;
border: none;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.btn-scale:hover {
transform: scale(1.1);
box-shadow: 0 12px 28px rgba(108,99,255,0.4);
}Hover Card
Card Lift
Card lifts vertically with accent shadow on hover
.card-lift {
padding: 24px;
border-radius: 16px;
background: #151515;
border: 1px solid #2A2A2A;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
cursor: pointer;
}
.card-lift:hover {
transform: translateY(-8px);
box-shadow: 0 20px 50px rgba(108,99,255,0.2);
border-color: rgba(108,99,255,0.4);
}Glow Border
Glow Border
Glowing gradient border appears on hover
.card-glow-border {
position: relative;
padding: 24px;
border-radius: 16px;
background: #151515;
border: 1px solid #2A2A2A;
cursor: pointer;
z-index: 0;
}
.card-glow-border::before {
content: '';
position: absolute;
inset: -1px;
border-radius: 17px;
background: linear-gradient(135deg, #6C63FF, #8b5cf6, #f472b6);
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}
.card-glow-border:hover::before { opacity: 1; }UIXplor
Text Shimmer
Animated gradient shimmer sweeps across text
.text-shimmer {
font-size: 36px;
font-weight: 800;
background: linear-gradient(90deg, #6C63FF 0%, #a78bfa 25%, #fff 50%, #a78bfa 75%, #6C63FF 100%);
background-size: 200% auto;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }Build UI fast
Typewriter
Classic blinking cursor typewriter reveal
.typewriter {
font-size: 24px;
font-weight: 700;
color: #fff;
border-right: 2px solid #6C63FF;
white-space: nowrap;
overflow: hidden;
width: 0;
animation: typing 3s steps(16) forwards, blink 0.7s step-end infinite;
}
@keyframes typing { to { width: 16ch; } }
@keyframes blink { 50% { border-color: transparent; } }Bouncing Dots
Three dots that bounce in sequence
.dots { display: flex; gap: 8px; align-items: center; }
.dot {
width: 10px; height: 10px;
border-radius: 50%;
background: #6C63FF;
animation: bounce 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; background: #8b5cf6; }
.dot:nth-child(3) { animation-delay: 0.4s; background: #a78bfa; }
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
}Spin Ring
Smooth multi-layer spinning ring
.ring {
width: 40px; height: 40px;
border-radius: 50%;
border: 3px solid rgba(108,99,255,0.15);
border-top-color: #6C63FF;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }Try animations live in the editor
Open Playground