added lazy loading and change the questions ans

This commit is contained in:
2025-03-17 19:00:39 +08:00
parent bafeef5c29
commit 4095a9042a
7 changed files with 21 additions and 7 deletions

View File

@@ -67,11 +67,12 @@ function Compare() {
>
{/* Content here */}
<MotionImage
src='/images/conpareheart.webp'
src='/images/compareheart.webp'
width={{
base: '95%', sm: '90% ', md: '80% ', lg: '35% '
}}
position="absolute"
loading="lazy"
top="0%"
left="50%"
transform="translateX(-51%)"
@@ -117,6 +118,7 @@ function Compare() {
width={{
base: '100%%', sm: '95% ', md: '80% ', lg: '35% '
}}
loading="lazy"
initial={{ opacity: 0 }}
whileInView={{ opacity: 1 }}
viewport={{ once: true }}