Main functions
This commit is contained in:
69
.history/public/css/sticky-price_20251026100440.css
Normal file
69
.history/public/css/sticky-price_20251026100440.css
Normal file
@@ -0,0 +1,69 @@
|
||||
/* Dynamic Price Island - As Calculator Extension */
|
||||
#priceIsland {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
#islandContainer {
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
#islandContent {
|
||||
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Hover effects for island */
|
||||
#priceIsland:hover #islandContainer {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 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) {
|
||||
#priceIsland {
|
||||
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