feat: mugikorrean irudi estela hobetzen du

This commit is contained in:
2025-08-30 07:52:11 +02:00
parent 9130125005
commit d299b60874

View File

@@ -64,21 +64,23 @@ function shuffle<T>(array: T[]) {
});
img?.parentElement?.addEventListener("touchstart", () => {
gsap.to(img, {
const tl = gsap.timeline();
tl.to(img, {
scale: 2,
opacity: 1,
duration: 0.3,
ease: "power2.out",
});
});
img?.parentElement?.addEventListener("touchend", () => {
gsap.to(img, {
scale: 0,
opacity: 0.4,
duration: 1.6,
ease: "power2.inOut",
});
tl.to(
img,
{
scale: 0,
opacity: 0,
duration: 0.3,
ease: "power2.out",
},
"+=0.2"
);
});
});
</script>