5-Day Forecast Strip
A copy-paste weather & ambient component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Weather & AmbientHTMLCSSany framework
Mon24°
Tue21°
Wed18°
Thu16°
Fri15°
Copy into your project
HTML
<!-- 5-Day Forecast Strip (staggered fade-in cards with tiny animated glyphs) -->
<div class="nuda-wa2-forecast-strip" role="group" aria-label="5-day weather forecast">
<div class="nuda-wa2-forecast-strip__day" style="--fs-d:0s">
<span class="nuda-wa2-forecast-strip__label">Mon</span>
<span class="nuda-wa2-forecast-strip__icon" aria-hidden="true">
<span class="nuda-wa2-forecast-strip__sun"></span>
</span>
<span class="nuda-wa2-forecast-strip__temp">24°</span>
</div>
<div class="nuda-wa2-forecast-strip__day" style="--fs-d:.1s">
<span class="nuda-wa2-forecast-strip__label">Tue</span>
<span class="nuda-wa2-forecast-strip__icon" aria-hidden="true">
<span class="nuda-wa2-forecast-strip__sun nuda-wa2-forecast-strip__sun--sm"></span>
<span class="nuda-wa2-forecast-strip__cloud"></span>
</span>
<span class="nuda-wa2-forecast-strip__temp">21°</span>
</div>
<div class="nuda-wa2-forecast-strip__day" style="--fs-d:.2s">
<span class="nuda-wa2-forecast-strip__label">Wed</span>
<span class="nuda-wa2-forecast-strip__icon" aria-hidden="true">
<span class="nuda-wa2-forecast-strip__cloud nuda-wa2-forecast-strip__cloud--lg"></span>
</span>
<span class="nuda-wa2-forecast-strip__temp">18°</span>
</div>
<div class="nuda-wa2-forecast-strip__day" style="--fs-d:.3s">
<span class="nuda-wa2-forecast-strip__label">Thu</span>
<span class="nuda-wa2-forecast-strip__icon" aria-hidden="true">
<span class="nuda-wa2-forecast-strip__cloud"></span>
<span class="nuda-wa2-forecast-strip__drop"></span>
<span class="nuda-wa2-forecast-strip__drop nuda-wa2-forecast-strip__drop--2"></span>
</span>
<span class="nuda-wa2-forecast-strip__temp">16°</span>
</div>
<div class="nuda-wa2-forecast-strip__day" style="--fs-d:.4s">
<span class="nuda-wa2-forecast-strip__label">Fri</span>
<span class="nuda-wa2-forecast-strip__icon" aria-hidden="true">
<span class="nuda-wa2-forecast-strip__cloud nuda-wa2-forecast-strip__cloud--dark"></span>
<span class="nuda-wa2-forecast-strip__bolt"></span>
</span>
<span class="nuda-wa2-forecast-strip__temp">15°</span>
</div>
</div>CSS
.nuda-wa2-forecast-strip {
position: relative;
width: 100%;
max-width: 300px;
height: 120px;
border-radius: 14px;
background: #111114;
border: 1px solid rgba(255,255,255,.08);
display: flex;
align-items: stretch;
justify-content: space-between;
padding: 12px 8px;
box-sizing: border-box;
gap: 4px;
}
.nuda-wa2-forecast-strip__day {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 6px;
opacity: 0;
transform: translateY(6px);
will-change: transform,opacity;
animation: _nuda-wa2forecastStripIn .6s ease-out var(--fs-d,0s) forwards;
}
.nuda-wa2-forecast-strip__label {
font: 600 10px/1 system-ui,sans-serif;
color: #777;
text-transform: uppercase;
letter-spacing: .04em;
}
.nuda-wa2-forecast-strip__icon {
position: relative;
width: 28px;
height: 26px;
}
.nuda-wa2-forecast-strip__temp {
font: 600 12px/1 system-ui,sans-serif;
color: #fafafa;
}
.nuda-wa2-forecast-strip__sun {
position: absolute;
top: 2px;
left: 6px;
width: 16px;
height: 16px;
border-radius: 50%;
background: radial-gradient(circle,#fafafa,#e4ff54 70%);
will-change: transform,opacity;
animation: _nuda-wa2forecastStripSun 4s ease-in-out infinite;
}
.nuda-wa2-forecast-strip__sun--sm {
top: 0;
left: 2px;
width: 12px;
height: 12px;
}
.nuda-wa2-forecast-strip__cloud {
position: absolute;
bottom: 2px;
left: 1px;
width: 24px;
height: 11px;
border-radius: 8px;
background: #9aa0aa;
box-shadow: 6px -4px 0 -2px #b0b6bf,-4px -3px 0 -3px #b0b6bf;
}
.nuda-wa2-forecast-strip__cloud--lg {
width: 26px;
height: 13px;
}
.nuda-wa2-forecast-strip__cloud--dark {
background: #5c6270;
box-shadow: 6px -4px 0 -2px #6d7482,-4px -3px 0 -3px #6d7482;
}
.nuda-wa2-forecast-strip__drop {
position: absolute;
bottom: 0;
left: 9px;
width: 2px;
height: 6px;
border-radius: 1px;
background: #e4ff54;
opacity: .8;
will-change: transform,opacity;
animation: _nuda-wa2forecastStripDrop 1.2s ease-in infinite;
}
.nuda-wa2-forecast-strip__drop--2 {
left: 17px;
animation-delay: .4s;
}
.nuda-wa2-forecast-strip__bolt {
position: absolute;
bottom: 0;
left: 11px;
width: 6px;
height: 10px;
background: #e4ff54;
clip-path: polygon(60% 0,100% 45%,55% 50%,90% 100%,0 55%,45% 50%);
opacity: .9;
will-change: opacity;
animation: _nuda-wa2forecastStripBolt 5s ease-in-out infinite;
}
@keyframes _nuda-wa2forecastStripIn {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes _nuda-wa2forecastStripSun {
0%,100% {
transform: scale(1);
opacity: .9;
}
50% {
transform: scale(1.12);
opacity: 1;
}
}
@keyframes _nuda-wa2forecastStripDrop {
0% {
transform: translateY(0);
opacity: 0;
}
20% {
opacity: .9;
}
100% {
transform: translateY(10px);
opacity: 0;
}
}
@keyframes _nuda-wa2forecastStripBolt {
0%,100% {
opacity: .55;
}
50% {
opacity: 1;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-wa2-forecast-strip__day {
animation: none;
opacity: 1;
transform: translateY(0);
}
.nuda-wa2-forecast-strip__sun {
animation: none;
opacity: 1;
}
.nuda-wa2-forecast-strip__drop {
animation: none;
opacity: .5;
transform: translateY(4px);
}
.nuda-wa2-forecast-strip__bolt {
animation: none;
opacity: .8;
}
}
How to use 5-Day Forecast Strip
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.