code-brew-caf / style.css
lucacadalora's picture
make me a coffesshop called code LLC with several menus
5ce6277 verified
raw
history blame contribute delete
883 Bytes
/* Custom styles that extend Tailwind */
.hero {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('http://static.photos/workspace/1200x630/1');
background-size: cover;
background-position: center;
}
/* Animation for menu items */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.menu-item {
animation: fadeIn 0.5s ease-out forwards;
opacity: 0;
}
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
/* Responsive tweaks */
@media (max-width: 768px) {
.hero {
padding: 4rem 1rem;
}
}