feat: add unique keys to motion components for improved rendering

This commit is contained in:
Dayron
2025-11-12 18:51:25 +01:00
parent e8722cf25d
commit 5be7a0c821
7 changed files with 29 additions and 11 deletions

View File

@@ -17,6 +17,7 @@ const Hero = () => {
<section id="hero" className="hero">
<div className="hero-content">
<motion.div
key="hero-text"
className="hero-text"
initial={{ opacity: 0, y: 50 }}
animate={{ opacity: 1, y: 0 }}
@@ -111,6 +112,7 @@ const Hero = () => {
</motion.div>
<motion.div
key="hero-image"
className="hero-image"
initial={{ opacity: 0, scale: 0.8 }}
animate={{ opacity: 1, scale: 1 }}