Scroll reveal cards
Cards that fade and rise into place one after another as they scroll into view. Pure CSS, using the browser's scroll-driven animations. Use it for a short list that you want to feel alive as someone scrolls. Three or four cards is plenty.
<section class="blk-section" aria-labelledby="blk-reveal-h">
<div class="blk-container">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-reveal-h">How we work</h2>
<p>Scroll to see each step arrive.</p>
</div>
</header>
<ol class="blk-reveal">
<li class="blk-reveal__card">
<span class="blk-reveal__n">01</span>
<h3>Listen</h3>
<p>Start with the problem and the people it affects.</p>
</li>
<li class="blk-reveal__card">
<span class="blk-reveal__n">02</span>
<h3>Shape</h3>
<p>Agree the smallest useful thing and how we will know it works.</p>
</li>
<li class="blk-reveal__card">
<span class="blk-reveal__n">03</span>
<h3>Build</h3>
<p>Deliver in small releases you can see and try.</p>
</li>
<li class="blk-reveal__card">
<span class="blk-reveal__n">04</span>
<h3>Hand over</h3>
<p>Leave a team that can carry on without me.</p>
</li>
</ol>
</div>
</section>.blk-reveal { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.blk-reveal__card { background: var(--blk-surface); border: 1px solid var(--blk-line); border-top: 3px solid var(--blk-accent); border-radius: var(--blk-radius-lg); padding: 24px; box-shadow: var(--blk-shadow); }
.blk-reveal__n { display: block; font-family: var(--blk-font-heading); font-weight: 700; font-size: 1.3rem; color: var(--blk-accent); margin-bottom: 8px; }
.blk-reveal__card h3 { font-size: 1.25rem; margin-bottom: .4em; }
@keyframes blk-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
.blk-reveal__card { animation: blk-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@media (min-width: 720px) { .blk-reveal { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blk-reveal { grid-template-columns: repeat(4, 1fr); } }How to customise it
- It uses animation-timeline: view(), supported in current Chrome, Edge and Safari. Browsers without it simply show the cards with no animation.
- The stagger comes from the animation-range on each card. Change the offsets in block.css to make it quicker or slower.
- Never hide important content behind motion. The cards are fully visible without it.
- All motion stops when the visitor has asked their device for reduced motion, because base.css switches animations off.
Tokens it reads
--blk-surface--blk-line--blk-accent--blk-heading--blk-radius-lg--blk-shadowAdd the "Scroll reveal cards" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/reveal-cards) to my page. Link https://resources.productscope.uk/blocks/blocks/kit/blocks.css once. Paste the HTML from https://resources.productscope.uk/blocks/blocks/kit/blocks/reveal-cards.html and replace the placeholder text with my real content. Do not change the class names, add inline styles or add scripts. To change colours or fonts, override the --blk- variables in my own CSS. Do not invent facts, clients or numbers.