March 15, 2024
Building 3D Web Experiences with CSS
Learn how to create stunning 3D animations and interactions using pure CSS transforms and perspective properties.
Read More →Articles, tutorials, and code snippets from my development journey
Learn how to create stunning 3D animations and interactions using pure CSS transforms and perspective properties.
Read More →Deep dive into React performance optimization techniques, including memoization, code splitting, and lazy loading.
Read More →Exploring ES6+ features, async/await patterns, and modern JavaScript best practices for 2024.
Read More →A comprehensive guide to creating accessible web applications that work for everyone, including WCAG 2.1 compliance.
Read More →Advanced TypeScript patterns, type guards, generics, and utility types to level up your development workflow.
Read More →When to use CSS Grid and when to use Flexbox, with practical examples and real-world use cases.
Read More →.card-3d {
transform-style: preserve-3d;
transition: transform 0.6s;
}
.card-3d:hover {
transform: rotateY(15deg) rotateX(5deg);
}
Copy Code
window.addEventListener('scroll', () => {
const scrolled = window.pageYOffset;
const parallax = document.querySelector('.parallax');
parallax.style.transform =
`translateY(${scrolled * 0.5}px)`;
});
Copy Code
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.element {
animation: float 3s ease-in-out infinite;
}
Copy Code