funky-button-fiesta / style.css
audriusblockis's picture
Create a funky and fun website that have one cta button that does something surprising when clicked that cta.
5b1edc9 verified
Raw
History Blame Contribute Delete
791 Bytes
/* Base styles */
body {
transition: background-color 0.3s ease;
}
/* Confetti styles */
.confetti {
position: absolute;
width: 10px;
height: 10px;
opacity: 0;
animation: confetti-fall 3s ease-in-out forwards;
}
@keyframes confetti-fall {
0% {
transform: translateY(-100px) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(500px) rotate(360deg);
opacity: 0;
}
}
/* Button hover effects */
#funky-button:hover {
box-shadow: 0 10px 25px -5px rgba(74, 222, 128, 0.4);
}
/* Surprise container transition */
#surprise-container {
transition: all 0.5s ease-out;
}
/* Responsive adjustments */
@media (max-width: 640px) {
#funky-button {
padding: 1rem 2rem;
font-size: 1.25rem;
}
}