Building CSS Radar Beacons & Multi-Step Guided Product Onboarding Tours
An onboarding feature beacon attaches a pulsing radar ring (`@keyframes radarPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }`) to targeted DOM elements, expanding into an explanatory tooltip card with "Next" and "Finish" steps upon click.
Step 1: Construct the Radar Beacon and Tooltip Markup
Place the pulsing beacon hotspot on the targeted DOM feature element.
<div class="feature-target-wrapper" style="position: relative; display: inline-block;">
<button class="target-button">Generate Code ✨</button>
<!-- Pulsing Radar Beacon -->
<div class="onboarding-beacon" id="featureBeacon" aria-label="Feature highlight: Click to take tour">
<span class="beacon-core"></span>
<span class="beacon-wave"></span>
</div>
<!-- Onboarding Tooltip Card -->
<div class="beacon-popover" id="beaconPopover" role="tooltip">
<h4>🚀 Multi-Format Code Export</h4>
<p>Export your widgets directly to Vanilla CSS, modern Web Components, or Tailwind CSS v4 in one click.</p>
<div class="popover-actions">
<span class="step-indicator">Step 1 of 3</span>
<button class="btn-tour-next" id="btnNextStep">Got It</button>
</div>
</div>
</div>
Step 2: Style the Concentric Radar Ripple Animation
Create the pulsing ripple effect using CSS pseudo-elements and keyframe scaling.
.onboarding-beacon {
position: absolute;
top: -6px; right: -6px;
width: 14px; height: 14px;
cursor: pointer;
z-index: 10;
}
.beacon-core {
position: absolute;
inset: 0;
border-radius: 50%;
background: #38bdf8;
box-shadow: 0 0 8px #38bdf8;
}
.beacon-wave {
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid #38bdf8;
animation: radarWave 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
@keyframes radarWave {
0% { transform: scale(1); opacity: 1; }
100% { transform: scale(3.2); opacity: 0; }
}
.beacon-popover {
display: none;
position: absolute;
top: calc(100% + 12px);
left: 0;
width: 260px;
background: #0f172a;
border: 1px solid rgba(56, 189, 248, 0.4);
border-radius: 12px;
padding: 16px;
color: #fff;
box-shadow: 0 12px 30px rgba(0,0,0,0.5);
z-index: 20;
}
.beacon-popover.is-active {
display: block;
}
Step 3: Trigger Step Progress and Save Tour Completion
Toggle the popover card, advance tour steps, and record completion in localStorage.
const beacon = document.getElementById('featureBeacon');
const popover = document.getElementById('beaconPopover');
const btnNext = document.getElementById('btnNextStep');
beacon.addEventListener('click', () => {
popover.classList.toggle('is-active');
});
btnNext.addEventListener('click', () => {
popover.classList.remove('is-active');
beacon.style.display = 'none';
localStorage.setItem('tour_feature_completed', 'true');
});
if (localStorage.getItem('tour_feature_completed') === 'true') {
beacon.style.display = 'none';
}
Next-Level Addons: Elevating Your Implementation
Take this technique further by combining it with complementary design token studios and animation tools:
Here's my golden rule when implementing this in production: test across multiple devices and browsers early. Keep your DOM hierarchy shallow, optimize assets with modern formats (like WebP/AVIF), and verify keyboard navigation for accessibility.
Frequently Asked Questions
Practical answers to common implementation questions, browser quirks, and performance tips.
Why are beacons better than intrusive modal onboarding walkthroughs?
Beacons offer non-blocking discoverability: visitors explore features on their own schedule without being interrupted by full-screen overlays.
How do you position the onboarding popover when the element is near viewport edges?
Check `element.getBoundingClientRect()`: if the right boundary exceeds `window.innerWidth - 300`, flip the popover align to the right (`right: 0; left: auto;`).
Can the beacon tour guide users through a multi-step sequence across different pages?
Yes, store `{ currentStep: 2, tourId: "welcome" }` in localStorage and read the step state upon target page initialization.
How do you disable the radar animation for users who prefer reduced motion?
Use `@media (prefers-reduced-motion: reduce) { .beacon-wave { animation: none; opacity: 0; } }` to eliminate continuous motion.
Does this tour library require external dependencies like Driver.js or Shepherd?
No, this solution is pure zero-dependency CSS and vanilla JavaScript with less than 2KB bundle footprint.