Key Features:
-
Responsive Design: Adapts to different screen sizes (desktop, tablet, mobile)
-
Modern Card Layout: Clean, elevated cards with hover effects
-
Numbered Steps: Like your template, each section has a prominent number
-
Subtle Animations: Cards fade in on scroll and lift on hover
-
Color Scheme: Uses a primary blue color that you can easily customize
-
Clean Typography: Readable fonts with proper hierarchy
Customization Options:
-
Change colors by modifying the CSS variables at the top
-
Adjust the number of cards by adding/removing card elements
-
Modify content to match your specific value proposition
-
Adjust animation timing in the JavaScript section
The design maintains the structured, numbered approach of your template while presenting it as a "Why Choose Us" section that highlights your company's strengths.
:root {
--primary-color: #4a6bff;
--secondary-color: #f8f9fa;
--text-color: #333;
--light-text: #666;
--white: #fff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--secondary-color);
color: var(--text-color);
line-height: 1.6;
}
.why-choose-us {
max-width: 1200px;
margin: 50px auto;
padding: 0 20px;
}
.section-header {
text-align: center;
margin-bottom: 50px;
}
.section-header h1 {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 15px;
}
.section-header p {
font-size: 1.1rem;
color: var(--light-text);
max-width: 700px;
margin: 0 auto;
}
.steps-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
}
.step-card {
flex: 1 1 300px;
background: var(--white);
border-radius: 10px;
padding: 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
overflow: hidden;
}
.step-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.step-number {
font-size: 2rem;
font-weight: bold;
color: var(--primary-color);
margin-bottom: 15px;
position: relative;
display: inline-block;
}
.step-number:after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 40px;
height: 3px;
background-color: var(--primary-color);
}
.step-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--text-color);
}
.step-card p {
color: var(--light-text);
margin-bottom: 20px;
}
.step-card:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 5px;
height: 0;
background-color: var(--primary-color);
transition: height 0.3s ease;
}
.step-card:hover:before {
height: 100%;
}
@media (max-width: 768px) {
.steps-container {
flex-direction: column;
}
.section-header h1 {
font-size: 2rem;
}
}
// Animation for step cards
document.addEventListener('DOMContentLoaded', function() {
const stepCards = document.querySelectorAll('.step-card');
// Add animation on scroll
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
// Set initial state and observe
stepCards.forEach((card, index) => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
card.style.transition = `opacity 0.5s ease ${index * 0.1}s, transform 0.5s ease ${index * 0.1}s`;
observer.observe(card);
});
// Add hover effect with JS fallback for touch devices
stepCards.forEach(card => {
card.addEventListener('mouseenter', function() {
this.classList.add('hover');
});
card.addEventListener('mouseleave', function() {
this.classList.remove('hover');
});
});
});
Post a Comment
Thank you
Learning robo team