-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathanimations.css
More file actions
114 lines (98 loc) · 2.26 KB
/
Copy pathanimations.css
File metadata and controls
114 lines (98 loc) · 2.26 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* ==========================================================================
GREEN KARMA — ANIMATIONS & MICRO-INTERACTIONS
========================================================================== */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
from { opacity: 0; transform: translateX(40px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
0%, 100% {
box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
}
50% {
box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
}
}
@keyframes floatGentle {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-8px);
}
}
@keyframes flameFlicker {
0%, 100% {
transform: scale(1) rotate(0deg);
}
25% {
transform: scale(1.1) rotate(-3deg);
}
75% {
transform: scale(1.05) rotate(3deg);
}
}
@keyframes rotateSlow {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
/* Animation Utility Classes */
.animate-fade-in {
animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-float {
animation: floatGentle 4s ease-in-out infinite;
}
.animate-pulse-glow {
animation: pulseGlow 2s infinite;
}
.animate-flame {
display: inline-block;
animation: flameFlicker 1.5s infinite;
}
.animate-spin-slow {
animation: rotateSlow 18s linear infinite;
}
/* Floating Metrics Card (Hero section) */
.floating-stat-card {
position: absolute;
padding: 0.85rem 1.25rem;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(12px);
border-radius: var(--radius-lg);
box-shadow: 0 12px 30px rgba(16, 42, 67, 0.15);
border: 1px solid rgba(255, 255, 255, 0.8);
display: flex;
align-items: center;
gap: 0.75rem;
z-index: 10;
pointer-events: none;
}
/* Confetti Canvas Overlay */
#confetti-canvas {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 9999;
}
/* Live Truck Route Polyline Pulsing */
.leaflet-interactive-route {
stroke-dasharray: 8, 8;
animation: routeDash 1s linear infinite;
}
@keyframes routeDash {
to {
stroke-dashoffset: -16;
}
}