Back to Components

Weather Card

Animated weather card with floating icons and gradient backgrounds. Perfect for weather apps or dashboard widgets with smooth transitions.

Creative UI Card Weather

Live Preview

☀️
24°

HTML

<div class="weather-card">
    <div class="weather-icon">☀️</div>
    <div class="weather-temp">24°</div>
</div>

CSS

.weather-card {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.weather-card:hover {
    transform: translateY(-5px);
}

.weather-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.weather-temp {
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}