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

@@ -127,6 +127,7 @@ const Contact = () => {
<section id="contact" className="contact">
<div className="container">
<motion.div
key="contact-header"
className="section-header"
initial={{ opacity: 0, y: 50 }}
whileInView={{ opacity: 1, y: 0 }}
@@ -140,6 +141,7 @@ const Contact = () => {
</motion.div>
<motion.div
key="contact-content"
className="contact-content"
variants={containerVariants}
initial="hidden"