Files
sst_site/.history/public/css/sticky-price_20251026100151.css
2025-10-26 14:44:10 +09:00

69 lines
1.5 KiB
CSS

/* 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);
}