Skip to content

Commit e127f7c

Browse files
committed
revert
1 parent 50323af commit e127f7c

3 files changed

Lines changed: 8 additions & 60 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ yt-dlp-env/*
55
prompts/*
66
GEMINI.md
77
AGENTS.md
8-
CLAUDE.md
8+
CLAUDE.md
9+
.aider*

script.js

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,35 +55,11 @@ document.addEventListener('DOMContentLoaded', function() {
5555
});
5656
}, observerOptions);
5757

58-
// Observe sections for animation, excluding the hero section which has custom animation
58+
// Observe sections for animation
5959
document.querySelectorAll('section').forEach(section => {
60-
if (section.id !== 'home') {
61-
observer.observe(section);
62-
}
60+
observer.observe(section);
6361
});
6462

65-
// Specific animation for hero section elements
66-
const heroSection = document.getElementById('home');
67-
if (heroSection) {
68-
const heroElements = heroSection.querySelectorAll('.hero-content > *'); // Select direct children
69-
const heroObserver = new IntersectionObserver(function(entries) {
70-
entries.forEach(entry => {
71-
if (entry.isIntersecting) {
72-
heroElements.forEach((element, index) => {
73-
// Apply fade-in-up with staggered delays
74-
setTimeout(() => {
75-
element.classList.add('fade-in-up');
76-
}, index * 150); // Stagger by 150ms per element
77-
});
78-
// Once animated, disconnect observer for this section if only needed once
79-
heroObserver.unobserve(entry.target);
80-
}
81-
});
82-
}, observerOptions);
83-
84-
heroObserver.observe(heroSection);
85-
}
86-
8763
// GitHub repositories fetching
8864
async function fetchGitHubRepos() {
8965
const projectsGrid = document.getElementById('projects-grid');
@@ -275,4 +251,4 @@ document.addEventListener('DOMContentLoaded', function() {
275251
document.getElementById('current-year').textContent = new Date().getFullYear();
276252

277253
console.log('Portfolio website loaded successfully!');
278-
});
254+
});

styles.css

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ body {
138138

139139
.hero-content {
140140
z-index: 2;
141-
animation: heroEntrance 1s ease-out forwards;
142141
}
143142

144143
.hero-title {
@@ -681,42 +680,14 @@ section {
681680
@keyframes fadeInUp {
682681
from {
683682
opacity: 0;
684-
transform: translateY(20px); /* Reduced vertical movement for subtlety */
683+
transform: translateY(30px);
685684
}
686685
to {
687686
opacity: 1;
688687
transform: translateY(0);
689688
}
690689
}
691-
@keyframes heroEntrance {
692-
from {
693-
opacity: 0;
694-
transform: translateY(30px) scale(0.95) rotate(-2deg);
695-
}
696-
to {
697-
opacity: 1;
698-
transform: translateY(0) scale(1) rotate(0deg);
699-
}
700-
}
701-
702-
703-
/* Staggered animation delays for hero content */
704-
.hero-title {
705-
animation: heroEntrance 1s ease-out forwards;
706-
animation-delay: 0.2s;
707-
}
708-
709-
.hero-subtitle {
710-
animation: heroEntrance 1s ease-out forwards;
711-
animation-delay: 0.4s;
712-
}
713-
714-
.hero-buttons {
715-
animation: heroEntrance 1s ease-out forwards;
716-
animation-delay: 0.6s;
717-
}
718690

719-
/* The .fade-in-up class is no longer needed for the hero section */
720-
/* .fade-in-up {
691+
.fade-in-up {
721692
animation: fadeInUp 0.6s ease-out forwards;
722-
} */
693+
}

0 commit comments

Comments
 (0)