somnia-stable/frontend/app/quantum-animations.css
Mert Marangoz ebed90285b Frontend Development Server: Running on localhost:3000
- ✅ Smart Contracts: Deployed on Somnia Testnet
     - ✅ Visual Enhancements: 8+ advanced effect layers implemented
     - ✅ Real Blockchain Integration: Live contract interactions
     - ✅ Build Process: Compiles successfully
2025-09-18 10:38:50 +03:00

918 lines
17 KiB
CSS

/* Quantum Animation Effects */
@keyframes quantum-pulse {
0%, 100% {
transform: scale(1);
opacity: 0.8;
}
50% {
transform: scale(1.1);
opacity: 1;
}
}
@keyframes grid-pulse {
0%, 100% {
opacity: 0.1;
}
50% {
opacity: 0.3;
}
}
@keyframes grid-shimmer {
0%, 100% {
transform: translateX(0) translateY(0);
opacity: 0.05;
}
50% {
transform: translateX(10px) translateY(10px);
opacity: 0.15;
}
}
@keyframes data-stream-up {
0% {
transform: translateY(100vh);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(-100vh);
opacity: 0;
}
}
@keyframes data-stream-down {
0% {
transform: translateY(-100vh);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(100vh);
opacity: 0;
}
}
@keyframes data-stream-left {
0% {
transform: translateX(100vw);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateX(-100vw);
opacity: 0;
}
}
@keyframes data-stream-right {
0% {
transform: translateX(-100vw);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateX(100vw);
opacity: 0;
}
}
@keyframes quantum-rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes hologram-flicker {
0%, 100% {
opacity: 1;
filter: brightness(1);
}
25% {
opacity: 0.8;
filter: brightness(1.2);
}
50% {
opacity: 0.9;
filter: brightness(0.9);
}
75% {
opacity: 0.95;
filter: brightness(1.1);
}
}
@keyframes energy-surge {
0% {
box-shadow: 0 0 5px currentColor;
}
50% {
box-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
}
100% {
box-shadow: 0 0 5px currentColor;
}
}
@keyframes quantum-float {
0%, 100% {
transform: translateY(0px) rotate(0deg);
}
33% {
transform: translateY(-10px) rotate(120deg);
}
66% {
transform: translateY(5px) rotate(240deg);
}
}
@keyframes neural-network {
0% {
stroke-dashoffset: 100;
opacity: 0.2;
}
50% {
stroke-dashoffset: 0;
opacity: 1;
}
100% {
stroke-dashoffset: -100;
opacity: 0.2;
}
}
@keyframes matrix-rain {
0% {
transform: translateY(-100%);
opacity: 0;
}
10%, 90% {
opacity: 1;
}
100% {
transform: translateY(100vh);
opacity: 0;
}
}
@keyframes cyber-glitch {
0%, 100% {
clip-path: inset(0 0 0 0);
transform: translateX(0);
}
20% {
clip-path: inset(0.6rem 0 0.4rem 0);
transform: translateX(-0.1rem);
}
40% {
clip-path: inset(0.4rem 0 0.6rem 0);
transform: translateX(0.1rem);
}
60% {
clip-path: inset(0.6rem 0 0.4rem 0);
transform: translateX(-0.1rem);
}
80% {
clip-path: inset(0.4rem 0 0.6rem 0);
transform: translateX(0.1rem);
}
}
.animate-data-stream-up {
animation: data-stream-up linear infinite;
}
.animate-data-stream-down {
animation: data-stream-down linear infinite;
}
.animate-data-stream-left {
animation: data-stream-left linear infinite;
}
.animate-data-stream-right {
animation: data-stream-right linear infinite;
}
.animate-quantum-rotation {
animation: quantum-rotation 20s linear infinite;
}
.animate-hologram-flicker {
animation: hologram-flicker 0.15s infinite linear alternate;
}
.animate-energy-surge {
animation: energy-surge 2s ease-in-out infinite;
}
.animate-quantum-float {
animation: quantum-float 6s ease-in-out infinite;
}
.animate-neural-network {
animation: neural-network 3s ease-in-out infinite;
}
.animate-matrix-rain {
animation: matrix-rain linear infinite;
}
.animate-cyber-glitch {
animation: cyber-glitch 0.3s infinite;
}
/* Quantum Utility Classes */
.quantum-glow {
filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor);
}
.quantum-blur {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.quantum-border {
border: 1px solid transparent;
background: linear-gradient(45deg, transparent, currentColor, transparent) padding-box,
linear-gradient(45deg, currentColor, transparent, currentColor) border-box;
}
.holographic {
background: linear-gradient(45deg,
rgba(0, 255, 255, 0.1) 0%,
rgba(128, 0, 255, 0.1) 25%,
rgba(255, 0, 128, 0.1) 50%,
rgba(0, 255, 128, 0.1) 75%,
rgba(0, 255, 255, 0.1) 100%);
background-size: 400% 400%;
animation: holographic-shift 3s ease-in-out infinite;
}
@keyframes holographic-shift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
.cyber-text {
text-shadow:
0 0 5px currentColor,
0 0 10px currentColor,
0 0 15px currentColor;
}
.quantum-card {
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(16px);
border: 1px solid rgba(100, 255, 255, 0.2);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.quantum-button {
background: linear-gradient(45deg,
rgba(0, 255, 255, 0.1),
rgba(128, 0, 255, 0.1));
border: 1px solid rgba(0, 255, 255, 0.3);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.quantum-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(255, 255, 255, 0.2),
transparent);
transition: left 0.5s;
}
.quantum-button:hover::before {
left: 100%;
}
.nano-grid {
background-image:
radial-gradient(circle at 1px 1px, rgba(0, 255, 255, 0.15) 1px, transparent 0);
background-size: 20px 20px;
}
.energy-field {
background: radial-gradient(ellipse at center,
rgba(0, 255, 255, 0.1) 0%,
rgba(128, 0, 255, 0.05) 50%,
transparent 100%);
}
/* Responsive quantum effects */
@media (max-width: 768px) {
.quantum-glow {
filter: drop-shadow(0 0 5px currentColor);
}
.animate-quantum-rotation {
animation-duration: 30s;
}
.animate-hologram-flicker {
animation-duration: 0.2s;
}
}
@keyframes slideInRight {
0% {
transform: translateX(100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes quantum-ripple {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(3);
opacity: 0;
}
}
@keyframes transaction-pulse {
0%, 100% {
box-shadow: 0 0 5px currentColor;
transform: scale(1);
}
50% {
box-shadow: 0 0 25px currentColor, 0 0 50px currentColor;
transform: scale(1.05);
}
}
@keyframes data-transfer {
0% {
transform: translateX(-100%);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
@keyframes quantum-success {
0% {
transform: scale(0) rotate(0deg);
opacity: 0;
}
50% {
transform: scale(1.2) rotate(180deg);
opacity: 1;
}
100% {
transform: scale(1) rotate(360deg);
opacity: 1;
}
}
@keyframes portal-spin {
0% {
transform: rotate(0deg) scale(1);
box-shadow: 0 0 20px currentColor;
}
50% {
transform: rotate(180deg) scale(1.1);
box-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
}
100% {
transform: rotate(360deg) scale(1);
box-shadow: 0 0 20px currentColor;
}
}
.animate-slide-in-right {
animation: slideInRight 0.5s ease-out forwards;
}
.animate-quantum-ripple {
animation: quantum-ripple 1s ease-out infinite;
}
.animate-transaction-pulse {
animation: transaction-pulse 2s ease-in-out infinite;
}
.animate-data-transfer {
animation: data-transfer 1.5s ease-in-out infinite;
}
.animate-quantum-success {
animation: quantum-success 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.animate-portal-spin {
animation: portal-spin 3s linear infinite;
}
/* Custom scrollbar for transaction feeds */
.custom-scrollbar {
scrollbar-width: thin;
scrollbar-color: rgba(100, 255, 255, 0.3) rgba(15, 23, 42, 0.3);
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.3);
border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: rgba(100, 255, 255, 0.3);
border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgba(100, 255, 255, 0.5);
}
/* Transaction status indicators */
.tx-pending {
background: linear-gradient(45deg,
rgba(251, 191, 36, 0.1) 0%,
rgba(245, 158, 11, 0.1) 100%);
border-color: rgba(251, 191, 36, 0.3);
}
.tx-confirmed {
background: linear-gradient(45deg,
rgba(34, 197, 94, 0.1) 0%,
rgba(22, 163, 74, 0.1) 100%);
border-color: rgba(34, 197, 94, 0.3);
}
.tx-failed {
background: linear-gradient(45deg,
rgba(239, 68, 68, 0.1) 0%,
rgba(220, 38, 38, 0.1) 100%);
border-color: rgba(239, 68, 68, 0.3);
}
/* Advanced 3D Animations */
@keyframes float-3d {
0%, 100% {
transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg);
}
25% {
transform: translate3d(-10px, -20px, 10px) rotateY(90deg) rotateX(15deg);
}
50% {
transform: translate3d(0, -30px, 20px) rotateY(180deg) rotateX(0deg);
}
75% {
transform: translate3d(10px, -20px, 10px) rotateY(270deg) rotateX(-15deg);
}
}
@keyframes sphere-glow {
0%, 100% {
filter: brightness(1) blur(1px);
transform: scale(1);
}
50% {
filter: brightness(1.5) blur(0.5px);
transform: scale(1.05);
}
}
@keyframes aurora-wave {
0%, 100% {
transform: translateX(-100%) skewX(-15deg);
opacity: 0;
}
50% {
transform: translateX(100%) skewX(15deg);
opacity: 0.7;
}
}
@keyframes hex-pulse {
0%, 100% {
opacity: 0.1;
transform: scale(1);
}
50% {
opacity: 0.6;
transform: scale(1.2);
}
}
@keyframes gradient-shift {
0%, 100% {
filter: hue-rotate(0deg) brightness(1);
}
25% {
filter: hue-rotate(90deg) brightness(1.2);
}
50% {
filter: hue-rotate(180deg) brightness(0.8);
}
75% {
filter: hue-rotate(270deg) brightness(1.1);
}
}
@keyframes twinkle {
0%, 100% {
opacity: 0.3;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.5);
}
}
@keyframes hologram-distort {
0%, 100% {
transform: perspective(400px) rotateY(0deg) rotateX(0deg);
filter: hue-rotate(0deg);
}
25% {
transform: perspective(400px) rotateY(5deg) rotateX(2deg);
filter: hue-rotate(90deg);
}
50% {
transform: perspective(400px) rotateY(0deg) rotateX(-2deg);
filter: hue-rotate(180deg);
}
75% {
transform: perspective(400px) rotateY(-5deg) rotateX(2deg);
filter: hue-rotate(270deg);
}
}
@keyframes energy-beam {
0% {
transform: translateX(-100%) scaleX(0);
opacity: 0;
}
50% {
transform: translateX(0%) scaleX(1);
opacity: 1;
}
100% {
transform: translateX(100%) scaleX(0);
opacity: 0;
}
}
@keyframes quantum-interference {
0%, 100% {
background-position: 0% 50%;
transform: rotate(0deg);
}
50% {
background-position: 100% 50%;
transform: rotate(180deg);
}
}
@keyframes neon-flicker {
0%, 100% {
text-shadow:
0 0 5px currentColor,
0 0 10px currentColor,
0 0 15px currentColor,
0 0 20px currentColor;
opacity: 1;
}
2% {
text-shadow: none;
opacity: 0.8;
}
8% {
text-shadow:
0 0 5px currentColor,
0 0 10px currentColor,
0 0 15px currentColor,
0 0 20px currentColor;
opacity: 1;
}
9% {
text-shadow: none;
opacity: 0.8;
}
12% {
text-shadow:
0 0 5px currentColor,
0 0 10px currentColor,
0 0 15px currentColor,
0 0 20px currentColor;
opacity: 1;
}
}
@keyframes digital-rain {
0% {
transform: translateY(-100%);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(100vh);
opacity: 0;
}
}
@keyframes plasma-flow {
0%, 100% {
background-position: 0% 0%;
transform: scale(1) rotate(0deg);
}
25% {
background-position: 100% 100%;
transform: scale(1.1) rotate(90deg);
}
50% {
background-position: 0% 100%;
transform: scale(0.9) rotate(180deg);
}
75% {
background-position: 100% 0%;
transform: scale(1.05) rotate(270deg);
}
}
/* Enhanced animation classes */
.animate-float-3d {
animation: float-3d 15s ease-in-out infinite;
}
.animate-sphere-glow {
animation: sphere-glow 4s ease-in-out infinite;
}
.animate-aurora-wave {
animation: aurora-wave 8s linear infinite;
}
.animate-hex-pulse {
animation: hex-pulse 3s ease-in-out infinite;
}
.animate-gradient-shift {
animation: gradient-shift 10s ease-in-out infinite;
}
.animate-twinkle {
animation: twinkle 2s ease-in-out infinite;
}
.animate-hologram-distort {
animation: hologram-distort 6s ease-in-out infinite;
}
.animate-energy-beam {
animation: energy-beam 2s linear infinite;
}
.animate-quantum-interference {
animation: quantum-interference 8s ease-in-out infinite;
}
.animate-neon-flicker {
animation: neon-flicker 1.5s infinite linear;
}
.animate-digital-rain {
animation: digital-rain 3s linear infinite;
}
.animate-plasma-flow {
animation: plasma-flow 12s ease-in-out infinite;
}
/* Aurora Background Styles */
.aurora-container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.aurora {
position: absolute;
width: 200%;
height: 100%;
background: linear-gradient(90deg,
transparent 0%,
rgba(0, 255, 255, 0.3) 25%,
rgba(128, 0, 255, 0.3) 50%,
rgba(255, 0, 128, 0.3) 75%,
transparent 100%);
filter: blur(60px);
animation: aurora-wave 20s linear infinite;
}
.aurora-1 {
top: -50%;
animation-delay: 0s;
animation-duration: 20s;
}
.aurora-2 {
top: 20%;
animation-delay: -5s;
animation-duration: 25s;
background: linear-gradient(90deg,
transparent 0%,
rgba(255, 0, 128, 0.2) 25%,
rgba(0, 255, 128, 0.2) 50%,
rgba(128, 255, 0, 0.2) 75%,
transparent 100%);
}
.aurora-3 {
top: 50%;
animation-delay: -10s;
animation-duration: 30s;
background: linear-gradient(90deg,
transparent 0%,
rgba(255, 128, 0, 0.25) 25%,
rgba(0, 128, 255, 0.25) 50%,
rgba(255, 0, 255, 0.25) 75%,
transparent 100%);
}
.aurora-4 {
top: 80%;
animation-delay: -15s;
animation-duration: 35s;
background: linear-gradient(90deg,
transparent 0%,
rgba(128, 255, 255, 0.15) 25%,
rgba(255, 255, 0, 0.15) 50%,
rgba(255, 128, 255, 0.15) 75%,
transparent 100%);
}
/* Glassmorphism effects */
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.glass-card:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
box-shadow:
0 12px 40px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
/* Enhanced button effects */
.cyber-button {
position: relative;
background: linear-gradient(45deg,
rgba(0, 255, 255, 0.1) 0%,
rgba(128, 0, 255, 0.1) 100%);
border: 2px solid transparent;
background-clip: padding-box;
overflow: hidden;
}
.cyber-button::before {
content: '';
position: absolute;
inset: 0;
padding: 2px;
background: linear-gradient(45deg, #00ffff, #8000ff, #ff0080, #00ff80, #00ffff);
border-radius: inherit;
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask-composite: exclude;
animation: quantum-interference 3s linear infinite;
}
.cyber-button::after {
content: '';
position: absolute;
top: 50%;
left: -100%;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, #fff, transparent);
transition: left 0.5s ease;
}
.cyber-button:hover::after {
left: 100%;
}
/* Pulse rings */
.pulse-ring {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 20px;
border: 2px solid rgba(0, 255, 255, 0.5);
border-radius: 50%;
animation: quantum-ripple 2s infinite;
}
.pulse-ring:nth-child(2) {
animation-delay: 0.5s;
}
.pulse-ring:nth-child(3) {
animation-delay: 1s;
}
@media (prefers-reduced-motion: reduce) {
.animate-quantum-rotation,
.animate-hologram-flicker,
.animate-energy-surge,
.animate-quantum-float,
.animate-neural-network,
.animate-matrix-rain,
.animate-cyber-glitch,
.animate-slide-in-right,
.animate-quantum-ripple,
.animate-transaction-pulse,
.animate-data-transfer,
.animate-quantum-success,
.animate-portal-spin,
.animate-float-3d,
.animate-sphere-glow,
.animate-aurora-wave,
.animate-hex-pulse,
.animate-gradient-shift,
.animate-twinkle,
.animate-hologram-distort,
.animate-energy-beam,
.animate-quantum-interference,
.animate-neon-flicker,
.animate-digital-rain,
.animate-plasma-flow {
animation: none;
}
}