@@ -18,28 +18,26 @@ const technologies = [
1818---
1919
2020<div class =" relative overflow-x-hidden py-8" >
21- <div
22- class =" pointer-events-none absolute inset-y-0 left-0 w-32 bg-gradient-to-r from-[var(--background)] to-transparent z-20"
23- >
24- </div >
25- <div
26- class =" pointer-events-none absolute inset-y-0 right-0 w-32 bg-gradient-to-l from-[var(--background)] to-transparent z-20"
27- >
28- </div >
21+ <div class =" pointer-events-none absolute inset-y-0 left-0 w-32 bg-gradient-to-r from-[var(--background)] to-transparent z-20" ></div >
22+ <div class =" pointer-events-none absolute inset-y-0 right-0 w-32 bg-gradient-to-l from-[var(--background)] to-transparent z-20" ></div >
2923
30- <div class =" flex animate-scroll hover:animate-paused gap-12 md:gap-20 w-max " >
24+ <div class =" flex animate-scroll w-max will-change-transform " >
3125 {
32- [... technologies , ... technologies , ... technologies ].map ((tech ) => (
33- <div class = " flex items-center gap-2 group transition-all duration-300" >
26+ [... technologies , ... technologies ].map ((tech , index ) => (
27+ <div
28+ class = " flex items-center gap-2 pr-12 md:pr-20 group transition-all duration-300"
29+ aria-hidden = { index >= technologies .length ? " true" : " false" }
30+ >
3431 <img
3532 src = { ` /svg/${tech }.svg ` }
3633 alt = { tech }
3734 class = " h-7 w-auto object-contain transition-transform group-hover:scale-110 opacity-60"
3835 width = " 30"
3936 height = " 30"
40- loading = " lazy"
37+ loading = { index < technologies .length ? " eager" : " lazy" }
38+ decoding = " async"
4139 />
42- <span class = " text-lg font-medium text-[var(--white-icon)]" >
40+ <span class = " text-lg font-medium text-[var(--white-icon)] whitespace-nowrap " >
4341 { tech .charAt (0 ).toUpperCase () + tech .slice (1 )}
4442 </span >
4543 </div >
@@ -50,11 +48,11 @@ const technologies = [
5048
5149<style is:global >
5250 @keyframes scroll {
53- from {
54- transform: translateX( 0);
51+ 0% {
52+ transform: translate3d(0, 0, 0);
5553 }
56- to {
57- transform: translateX (-50%);
54+ 100% {
55+ transform: translate3d (-50%, 0, 0 );
5856 }
5957 }
6058 .animate-scroll {
@@ -66,4 +64,4 @@ const technologies = [
6664 animation-duration: 50s;
6765 }
6866 }
69- </style >
67+ </style >
0 commit comments