From a550d28d6337f814c8618232b9e53c43b5b3b375 Mon Sep 17 00:00:00 2001 From: David espinosa <104380606+davespser@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:26:38 +0100 Subject: [PATCH] =?UTF-8?q?Update=20men=C3=BA.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "js/men\303\272.js" | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git "a/js/men\303\272.js" "b/js/men\303\272.js" index d38ada43..d9dfe3f9 100644 --- "a/js/men\303\272.js" +++ "b/js/men\303\272.js" @@ -1,5 +1,5 @@ // script.js - +import { gsap } from 'gsap'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); const renderer = new THREE.WebGLRenderer(); @@ -54,3 +54,10 @@ menuButton.addEventListener('click', () => { // Por ejemplo, puedes animar el plano para que se expanda // o mostrar/ocultar elementos del menú }); +// ... (resto de tu código Three.js) + +gsap.to(plane.scale, { + x: 2, + duration: 0.5, + ease: "power2.out" +});