feat: animated hero with parallax rocket + scroll reveal animations
- Add animated hero section with parallax rocket SVG that descends on scroll - Add floating decorative particles and gradient layers in hero - Add staggered text reveal animation on hero h1 - Create ScrollReveal component (IntersectionObserver-based fade/slide) - Create AnimatedCounter component for stat numbers - Add scroll animations to all sections (Problematique, System, Demos, AboutMe, FAQ, Contact, Footer) - Add smooth FAQ accordion transitions - Add extensive CSS keyframe animations (float, flame, particles, stat glow) https://claude.ai/code/session_01V8YAjpqRQ3bfBYsABYsEgo
This commit is contained in:
280
app/globals.css
280
app/globals.css
@@ -108,3 +108,283 @@ html {
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--color-navy);
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
HERO ANIMATIONS - Staggered text reveal
|
||||
================================================ */
|
||||
@keyframes hero-text-appear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(30px);
|
||||
filter: blur(4px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
filter: blur(0);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-hero-text-1 {
|
||||
opacity: 0;
|
||||
animation: hero-text-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
|
||||
}
|
||||
|
||||
.animate-hero-text-2 {
|
||||
opacity: 0;
|
||||
animation: hero-text-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
|
||||
}
|
||||
|
||||
.animate-hero-text-3 {
|
||||
opacity: 0;
|
||||
animation: hero-text-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
FADE IN ANIMATIONS
|
||||
================================================ */
|
||||
@keyframes fade-in-down {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fade-in-up {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-fade-in-down {
|
||||
opacity: 0;
|
||||
animation: fade-in-down 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
.animate-fade-in-up {
|
||||
opacity: 0;
|
||||
animation: fade-in-up 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
/* Animation delays */
|
||||
.animation-delay-200 { animation-delay: 200ms; }
|
||||
.animation-delay-400 { animation-delay: 400ms; }
|
||||
.animation-delay-600 { animation-delay: 600ms; }
|
||||
.animation-delay-800 { animation-delay: 800ms; }
|
||||
.animation-delay-1000 { animation-delay: 1000ms; }
|
||||
|
||||
/* ================================================
|
||||
UNDERLINE GROW ANIMATION
|
||||
================================================ */
|
||||
@keyframes underline-grow {
|
||||
0% {
|
||||
width: 0;
|
||||
}
|
||||
100% {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-underline-grow {
|
||||
animation: underline-grow 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
BOUNCE SLOW (scroll indicator)
|
||||
================================================ */
|
||||
@keyframes bounce-slow {
|
||||
0%, 100% {
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
50% {
|
||||
transform: translate(-50%, 8px);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-bounce-slow {
|
||||
animation: bounce-slow 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
FLOATING ELEMENTS
|
||||
================================================ */
|
||||
@keyframes float-slow {
|
||||
0%, 100% {
|
||||
transform: translateY(0) scale(1);
|
||||
opacity: 0.4;
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-20px) scale(1.1);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float-medium {
|
||||
0%, 100% {
|
||||
transform: translateY(0) translateX(0);
|
||||
opacity: 0.3;
|
||||
}
|
||||
33% {
|
||||
transform: translateY(-15px) translateX(10px);
|
||||
opacity: 0.6;
|
||||
}
|
||||
66% {
|
||||
transform: translateY(-25px) translateX(-5px);
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float-fast {
|
||||
0%, 100% {
|
||||
transform: translateY(0) rotate(0deg);
|
||||
opacity: 0.3;
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-12px) rotate(180deg);
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-float-slow {
|
||||
animation: float-slow 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.animate-float-medium {
|
||||
animation: float-medium 5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.animate-float-fast {
|
||||
animation: float-fast 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
ROCKET FLAME ANIMATION
|
||||
================================================ */
|
||||
@keyframes flame-flicker {
|
||||
0%, 100% {
|
||||
transform: scaleY(1) scaleX(1);
|
||||
opacity: 0.9;
|
||||
}
|
||||
25% {
|
||||
transform: scaleY(1.1) scaleX(0.95);
|
||||
opacity: 0.8;
|
||||
}
|
||||
50% {
|
||||
transform: scaleY(0.9) scaleX(1.05);
|
||||
opacity: 1;
|
||||
}
|
||||
75% {
|
||||
transform: scaleY(1.05) scaleX(0.97);
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-flame {
|
||||
transform-origin: center top;
|
||||
animation: flame-flicker 0.3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
PARTICLE ANIMATIONS (rocket trail)
|
||||
================================================ */
|
||||
@keyframes particle-1 {
|
||||
0%, 100% {
|
||||
transform: translateY(0) scale(1);
|
||||
opacity: 0.6;
|
||||
}
|
||||
50% {
|
||||
transform: translateY(8px) scale(0.5);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes particle-2 {
|
||||
0%, 100% {
|
||||
transform: translateY(0) scale(1);
|
||||
opacity: 0.4;
|
||||
}
|
||||
50% {
|
||||
transform: translateY(12px) scale(0.3);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes particle-3 {
|
||||
0%, 100% {
|
||||
transform: translateY(0) scale(1);
|
||||
opacity: 0.5;
|
||||
}
|
||||
50% {
|
||||
transform: translateY(10px) scale(0.4);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-particle-1 { animation: particle-1 1.2s ease-in-out infinite; }
|
||||
.animate-particle-2 { animation: particle-2 1.5s ease-in-out infinite 0.2s; }
|
||||
.animate-particle-3 { animation: particle-3 1.3s ease-in-out infinite 0.4s; }
|
||||
|
||||
/* ================================================
|
||||
SCROLL REVEAL ANIMATIONS
|
||||
================================================ */
|
||||
.scroll-reveal-up,
|
||||
.scroll-reveal-down,
|
||||
.scroll-reveal-left,
|
||||
.scroll-reveal-right,
|
||||
.scroll-reveal-fade {
|
||||
opacity: 0;
|
||||
transition-property: opacity, transform;
|
||||
transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.scroll-reveal-up {
|
||||
transform: translateY(40px);
|
||||
}
|
||||
|
||||
.scroll-reveal-down {
|
||||
transform: translateY(-40px);
|
||||
}
|
||||
|
||||
.scroll-reveal-left {
|
||||
transform: translateX(-40px);
|
||||
}
|
||||
|
||||
.scroll-reveal-right {
|
||||
transform: translateX(40px);
|
||||
}
|
||||
|
||||
.scroll-reveal-fade {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Revealed state */
|
||||
.scroll-revealed {
|
||||
opacity: 1 !important;
|
||||
transform: translateY(0) translateX(0) scale(1) !important;
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
ANIMATED COUNTER GLOW
|
||||
================================================ */
|
||||
@keyframes stat-glow {
|
||||
0%, 100% {
|
||||
text-shadow: 0 0 10px rgba(232, 119, 46, 0.3);
|
||||
}
|
||||
50% {
|
||||
text-shadow: 0 0 20px rgba(232, 119, 46, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-stat-glow {
|
||||
animation: stat-glow 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user