Scan Line
A copy-paste image effects component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Image EffectsHTMLCSSany framework
Copy into your project
HTML
<!-- Scan Line -->
<figure class="nuda-scan">
<img class="nuda-scan__img" src="/your-image.jpg" alt="" />
<span class="nuda-scan__line"></span>
<span class="nuda-scan__grid"></span>
</figure>CSS
/* Scan Line
CRT-style overlay: faint scanlines + a sweeping highlight bar.
Customize: --scan-color, --scan-duration */
.nuda-scan {
--scan-color: #e4ff54;
--scan-duration: 2.6s;
position: relative;
width: 100%;
aspect-ratio: 4 / 3;
border-radius: 12px;
overflow: hidden;
margin: 0;
}
.nuda-scan__img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: saturate(1.3) contrast(1.1);
}
.nuda-scan__grid {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.18) 0 2px,
transparent 2px 4px
);
pointer-events: none;
opacity: 0.6;
}
.nuda-scan__line {
position: absolute;
left: 0;
right: 0;
top: 0;
height: 22px;
background: linear-gradient(
180deg,
transparent,
rgba(228, 255, 84, 0.4),
transparent
);
box-shadow: 0 0 16px rgba(228, 255, 84, 0.5);
pointer-events: none;
animation: nuda-scan-line var(--scan-duration) linear infinite;
}
@keyframes nuda-scan-line {
0% { transform: translateY(-22px); }
100% { transform: translateY(calc(100% + 22px)); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-scan__line { animation: none; opacity: 0; }
}How to use Scan Line
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.