Stats Section - PlayRated Games
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #ffffff;
color: #333333;
line-height: 1.6;
}
/* Stats Section */
.stats-section {
padding: 80px 0;
position: relative;
overflow: hidden;
}
.stats-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
background-size: 40px 40px;
opacity: 0.8;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
position: relative;
z-index: 2;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
align-items: center;
}
.stat-item {
text-align: center;
padding: 30px 20px;
background: rgba(255, 255, 255, 0.8);
border-radius: 16px;
border: 1px solid rgba(255, 107, 53, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.stat-item::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.05), transparent);
transition: left 0.6s ease;
}
.stat-item:hover {
transform: translateY(-8px);
border-color: rgba(255, 107, 53, 0.3);
box-shadow: 0 20px 40px rgba(255, 107, 53, 0.1);
background: rgba(255, 255, 255, 1);
}
.stat-item:hover::before {
left: 100%;
}
.stat-number {
font-size: 3.5rem;
font-weight: 900;
color: #ff6b35;
display: block;
margin-bottom: 15px;
text-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
transition: all 0.3s ease;
}
.stat-item:hover .stat-number {
transform: scale(1.05);
text-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}
.stat-label {
color: #666666;
font-size: 1.1rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
line-height: 1.4;
transition: color 0.3s ease;
}
.stat-item:hover .stat-label {
color: #333333;
}
/* Responsive Design */
@media (max-width: 992px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}
.stat-number {
font-size: 3rem;
}
.stats-section {
padding: 60px 0;
}
}
@media (max-width: 768px) {
.stats-grid {
gap: 25px;
}
.stat-item {
padding: 25px 15px;
}
.stat-number {
font-size: 2.5rem;
margin-bottom: 10px;
}
.stat-label {
font-size: 1rem;
letter-spacing: 1px;
}
}
@media (max-width: 576px) {
.stats-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.stats-section {
padding: 50px 0;
}
.container {
padding: 0 15px;
}
.stat-item {
padding: 30px 20px;
}
.stat-number {
font-size: 2.8rem;
}
.stat-label {
font-size: 1.05rem;
}
}
@media (max-width: 320px) {
.stat-number {
font-size: 2.2rem;
}
.stat-label {
font-size: 0.95rem;
letter-spacing: 0.5px;
}
}
/* Animation for counting effect */
.stat-number.counting {
animation: pulse 0.1s ease-in-out;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
/* Loading animation */
.stat-item.loading {
opacity: 0;
transform: translateY(30px);
animation: fadeInUp 0.8s ease forwards;
}
.stat-item.loading:nth-child(1) { animation-delay: 0.1s; }
.stat-item.loading:nth-child(2) { animation-delay: 0.2s; }
.stat-item.loading:nth-child(3) { animation-delay: 0.3s; }
.stat-item.loading:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
0
Games Reviewed
0
Years Experience
<!--
-->
<!-- 0-->
<!-- Monthly Readers
-->
<!--
-->
0
Gaming Coverage
document.addEventListener('DOMContentLoaded', function() {
// Initialize intersection observer for counting animation
const observerOptions = {
threshold: 0.3,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const statNumbers = entry.target.querySelectorAll('.stat-number');
statNumbers.forEach(stat => {
if (!stat.classList.contains('animated')) {
stat.classList.add('animated');
animateCounter(stat);
}
});
}
});
}, observerOptions);
// Observe the stats section
const statsSection = document.querySelector('.stats-section');
observer.observe(statsSection);
// Counter animation function
function animateCounter(element) {
const target = parseInt(element.getAttribute('data-target'));
const suffix = element.getAttribute('data-suffix') || '';
const duration = 2000; // 2 seconds
const startTime = performance.now();
function updateCounter(currentTime) {
const elapsed = currentTime - startTime;
const progress = Math.min(elapsed / duration, 1);
// Easing function for smooth animation
const easeOutQuart = 1 - Math.pow(1 - progress, 4);
const current = Math.floor(easeOutQuart * target);
// Add counting animation class for pulse effect
element.classList.add('counting');
setTimeout(() => element.classList.remove('counting'), 100);
// Update the number
element.textContent = current + (progress < 1 ? '' : suffix);
if (progress {
item.addEventListener('touchstart', function() {
this.style.transform = 'translateY(-8px)';
}, { passive: true });
item.addEventListener('touchend', function() {
setTimeout(() => {
this.style.transform = 'translateY(0)';
}, 200);
}, { passive: true });
});
});