Feature Card
Modern feature card with icon, gradient background and hover animations.
card
feature
icon
gradient
Preview
Loading preview...
HTML
<div class="feature-card">
<div class="feature-icon">🚀</div>
<h3 class="feature-title">Fast Performance</h3>
<p class="feature-description">Experience lightning-fast load times and smooth interactions with our optimized architecture.</p>
<a href="#" class="feature-link">Learn more</a>
</div>
CSS
.feature-card {
background: white;
border-radius: 16px;
padding: 32px 24px;
text-align: center;
max-width: 300px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
cursor: pointer;
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(45deg, #667eea, #764ba2);
transition: height 0.3s ease;
}
.feature-card:hover::before {
height: 100%;
opacity: 0.05;
}
.feature-icon {
width: 64px;
height: 64px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 16px;
margin: 0 auto 20px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
font-weight: bold;
transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
transform: scale(1.1);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.feature-title {
font-size: 20px;
font-weight: 600;
color: #1f2937;
margin: 0 0 12px 0;
transition: color 0.3s ease;
}
.feature-description {
color: #6b7280;
line-height: 1.6;
margin: 0 0 24px 0;
font-size: 14px;
}
.feature-link {
color: #667eea;
text-decoration: none;
font-weight: 500;
font-size: 14px;
display: inline-flex;
align-items: center;
gap: 4px;
transition: all 0.3s ease;
}
.feature-link:hover {
color: #5a6fd8;
transform: translateX(4px);
}
.feature-link::after {
content: '→';
transition: transform 0.3s ease;
}
.feature-link:hover::after {
transform: translateX(2px);
}