Main functions
This commit is contained in:
77
.history/public/css/sticky-price_20251026100707.css
Normal file
77
.history/public/css/sticky-price_20251026100707.css
Normal file
@@ -0,0 +1,77 @@
|
||||
/* Price Display Island - Under Calculator */
|
||||
#priceDisplay {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Enhanced visibility and effects */
|
||||
#priceDisplay.scrolled {
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
|
||||
transform: scale(1.01);
|
||||
}
|
||||
|
||||
/* Hover effects */
|
||||
#priceDisplay:hover {
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
/* Animation for price updates */
|
||||
#currentPrice {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
#currentPrice.updating {
|
||||
transform: scale(1.1);
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
|
||||
/* Animation for price updates */
|
||||
.price-update {
|
||||
animation: priceUpdate 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes priceUpdate {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.05); color: #3b82f6; }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
/* Enhanced pulse animation for live indicator */
|
||||
.animate-pulse-soft {
|
||||
animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-soft {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.7;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile responsiveness improvements */
|
||||
@media (max-width: 1024px) {
|
||||
#priceDisplay {
|
||||
margin: 1rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#mobilePriceDisplay {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#mobilePriceDisplay:hover {
|
||||
transform: scale(1.02);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile Dynamic Island styling */
|
||||
#mobilePriceDisplay .shadow-2xl {
|
||||
box-shadow:
|
||||
0 20px 40px -12px rgba(0, 0, 0, 0.4),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.1),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
Reference in New Issue
Block a user