-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
27 lines (23 loc) · 866 Bytes
/
Copy pathscript.js
File metadata and controls
27 lines (23 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ============================================
// SHREE JEE GUPTA — PORTFOLIO JAVASCRIPT
// script.js
// ============================================
// ── Scroll Fade-Up Animation ──
const observer = new IntersectionObserver((entries) => {
entries.forEach(e => {
if (e.isIntersecting) {
e.target.classList.add('visible');
}
});
}, { threshold: 0.12 });
document.querySelectorAll('.fade-up').forEach(el => observer.observe(el));
// ── Stagger Delay for Cards ──
document.querySelectorAll(
'.skills-grid .skill-card, .projects-grid .project-card, .cert-grid .cert-card'
).forEach((el, i) => {
el.style.transitionDelay = (i * 0.07) + 's';
});
// ── Contact Form Submit ──
function handleFormSubmit() {
alert('Thank you! Please email me directly at shreejee7906986152@gmail.com');
}