Reveal-Up Card
A copy-paste scroll effects component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Scroll EffectsHTMLCSSany framework
✦
Scroll Reveal
Slides up as it enters the viewport
Copy into your project
HTML
<div class="nuda-scx-reveal-up__card">
<div class="nuda-scx-reveal-up__icon">✦</div>
<p class="nuda-scx-reveal-up__title">Scroll Reveal</p>
<p class="nuda-scx-reveal-up__sub">Slides up as it enters the viewport</p>
</div>CSS
.nuda-scx-reveal-up {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.nuda-scx-reveal-up__card {
background: #1a1a1a;
border: 1px solid rgba(255,255,255,.1);
border-radius: 12px;
padding: 1.25rem 1.5rem;
width: 100%;
max-width: 220px;
animation: _nuda-scxRevealUp .7s cubic-bezier(.16,1,.3,1) both;
}
.nuda-scx-reveal-up__icon {
font-size: 1.4rem;
color: #e4ff54;
margin-bottom: .5rem;
}
.nuda-scx-reveal-up__title {
color: #fafafa;
font-size: .9rem;
font-weight: 600;
margin: 0 0 .25rem;
}
.nuda-scx-reveal-up__sub {
color: #777;
font-size: .75rem;
margin: 0;
}
@keyframes _nuda-scxRevealUp {
from {
opacity: 0;
transform: translateY(32px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-scx-reveal-up__card {
animation: none;
}
}
How to use Reveal-Up Card
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.