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 a550d28 commit 61672ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/menú.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// script.js
import { gsap } from 'gsap';
import { gsap } from 'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js';
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 @@ -55,7 +55,13 @@ menuButton.addEventListener('click', () => {
// o mostrar/ocultar elementos del menú
});
// ... (resto de tu código Three.js)

menuButton.addEventListener('click', () => {
gsap.to(plane.scale, {
x: 2, // Escala en el eje X a 2
duration: 0.5, // Duración de la animación en segundos
ease: "power2.out" // Tipo de easing para la animación
});
});
gsap.to(plane.scale, {
x: 2,
duration: 0.5,
Expand Down

0 comments on commit 61672ee

Please sign in to comment.