Skip to content

Commit a0fa357

Browse files
cada ves mas astetic
se agrego el inicio de pantalla
1 parent 79c119c commit a0fa357

4 files changed

Lines changed: 114 additions & 0 deletions

File tree

app.js

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,63 @@
1+
// Nueva animación de intro
2+
const tl = gsap.timeline({ defaults: { ease: "power2.inOut" } });
3+
4+
// Aparecer el logo
5+
tl.to(".logo", {
6+
opacity: 1,
7+
duration: 0.5
8+
})
9+
10+
// Efecto de pulso (repetir 3 veces)
11+
.to(".pulse-effect", {
12+
opacity: 1,
13+
scale: 1,
14+
duration: 0.5,
15+
repeat: 3,
16+
yoyo: true,
17+
onStart: function() {
18+
// Iniciar el efecto de pulso (shadow)
19+
gsap.set(".pulse-effect", {
20+
boxShadow: "0 0 0 0 rgba(255, 255, 255, 0.7)"
21+
});
22+
},
23+
onRepeat: function() {
24+
// En cada repetición, reiniciar la sombra para el pulso
25+
gsap.set(".pulse-effect", {
26+
boxShadow: "0 0 0 0 rgba(255, 255, 255, 0.7)"
27+
});
28+
gsap.to(".pulse-effect", {
29+
boxShadow: "0 0 0 20px rgba(255, 255, 255, 0)",
30+
duration: 0.5
31+
});
32+
}
33+
})
34+
35+
// Efecto glitch rápido
36+
.to(".glitch", {
37+
opacity: 0.4,
38+
duration: 0.1
39+
})
40+
.to(".glitch", {
41+
opacity: 0,
42+
duration: 0.1
43+
})
44+
45+
// Desvanecer la intro
46+
.to("#intro", {
47+
opacity: 0,
48+
duration: 0.5,
49+
onComplete: function() {
50+
document.getElementById("intro").style.display = "none";
51+
// Iniciar la aplicación principal
52+
new NeuronNavigation();
53+
}
54+
})
55+
56+
// Revelar el contenido principal
57+
.to("#mainContent", {
58+
opacity: 1,
59+
duration: 0.5
60+
}, "-=0.3");
161
class NeuronNavigation {
262
constructor() {
363
this.currentSection = 'hero';

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1010
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
1111
<link rel="stylesheet" href="styles.css" />
12+
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
1213
</head>
1314
<body>
15+
<div id="intro">
16+
<div class="logo"></div>
17+
<div class="pulse-effect"></div>
18+
<div class="glitch"></div>
19+
</div>
1420
<!-- Audio Ambiental -->
1521
<div class="audio-control">
1622
<button id="audioToggle" class="audio-btn" aria-label="Controlar audio ambiental">

logo.png

16.9 KB
Loading

styles.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
/* Estilos para la intro simplificada */
2+
#intro {
3+
position: fixed;
4+
inset: 0;
5+
background: #000;
6+
display: flex;
7+
justify-content: center;
8+
align-items: center;
9+
z-index: 9999;
10+
}
11+
12+
.logo {
13+
width: 200px;
14+
height: 200px;
15+
background-image: url("logo.png"); /* Reemplaza con tu logo */
16+
background-size: contain;
17+
background-repeat: no-repeat;
18+
background-position: center;
19+
position: relative;
20+
z-index: 2;
21+
}
22+
23+
.pulse-effect {
24+
position: absolute;
25+
width: 200px;
26+
height: 200px;
27+
border-radius: 50%;
28+
background: transparent;
29+
border: 2px solid transparent;
30+
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
31+
opacity: 0;
32+
z-index: 1;
33+
}
34+
35+
.glitch {
36+
position: absolute;
37+
width: 100%;
38+
height: 100%;
39+
pointer-events: none;
40+
background: repeating-linear-gradient(
41+
to bottom,
42+
rgba(255,255,255,0.05) 0 2px,
43+
rgba(0,0,0,0) 2px 4px
44+
);
45+
opacity: 0;
46+
mix-blend-mode: overlay;
47+
z-index: 3;
48+
}
149
:root {
250
--primary: #93B9E0;
351
--lilac: #C4A2FC;

0 commit comments

Comments
 (0)