feat: mugikorrean irudi estela hobetzen du
This commit is contained in:
@@ -64,21 +64,23 @@ function shuffle<T>(array: T[]) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
img?.parentElement?.addEventListener("touchstart", () => {
|
img?.parentElement?.addEventListener("touchstart", () => {
|
||||||
gsap.to(img, {
|
const tl = gsap.timeline();
|
||||||
|
tl.to(img, {
|
||||||
scale: 2,
|
scale: 2,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
duration: 0.3,
|
duration: 0.3,
|
||||||
ease: "power2.out",
|
ease: "power2.out",
|
||||||
});
|
});
|
||||||
});
|
tl.to(
|
||||||
|
img,
|
||||||
img?.parentElement?.addEventListener("touchend", () => {
|
{
|
||||||
gsap.to(img, {
|
scale: 0,
|
||||||
scale: 0,
|
opacity: 0,
|
||||||
opacity: 0.4,
|
duration: 0.3,
|
||||||
duration: 1.6,
|
ease: "power2.out",
|
||||||
ease: "power2.inOut",
|
},
|
||||||
});
|
"+=0.2"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user