Skip to content

Commit

Permalink
Update menú.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davespser authored Dec 6, 2024
1 parent f6d4af0 commit a550d28
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/menú.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -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"
});

0 comments on commit a550d28

Please sign in to comment.