feat: mugikorrean irudi estela hobetzen du
This commit is contained in:
@@ -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, {
|
||||
tl.to(
|
||||
img,
|
||||
{
|
||||
scale: 0,
|
||||
opacity: 0.4,
|
||||
duration: 1.6,
|
||||
ease: "power2.inOut",
|
||||
});
|
||||
opacity: 0,
|
||||
duration: 0.3,
|
||||
ease: "power2.out",
|
||||
},
|
||||
"+=0.2"
|
||||
);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user