Creating an Animated What's New Changelog Flyout with Unread Notification Dots
An in-app changelog flyout pairs a bell icon with a pulsing CSS notification dot (`animation: pulseDot 2s infinite`). Tapping the trigger opens an off-canvas drawer (`transform: translateX(0)`) displaying recent releases and marks the latest release version as read in `localStorage`.
Step 1: Create the Changelog Bell Trigger & Drawer Markup
Structure the trigger button, unread notification dot, and slide-out feed container.
<div class="changelog-widget" id="changelogWidget">
<button class="changelog-trigger" id="btnChangelog" aria-haspopup="dialog" aria-expanded="false" aria-label="View product updates">
🔔
<span class="unread-dot" id="unreadDot" aria-label="Unread updates available"></span>
</button>
<aside class="changelog-drawer" id="changelogDrawer" role="dialog" aria-modal="true" aria-label="What's New">
<header class="drawer-header">
<h3>🚀 What's New</h3>
<button class="btn-close-drawer" id="btnCloseChangelog" aria-label="Close updates">✕</button>
</header>
<div class="release-feed">
<article class="release-item">
<div class="release-meta"><span class="tag-pill feature">New</span> <time>v2.18.0</time></div>
<h4>Widget Studio Launched</h4>
<p>20 zero-dependency interactive widgets across 5 distinct architectural pillars.</p>
</article>
</div>
</aside>
</div>
Step 2: Animate Off-Canvas Slide and Pulsing Glow
Use CSS translate transforms and keyframe box-shadow pulses for notification dots.
.unread-dot {
position: absolute;
top: 6px; right: 6px;
width: 10px; height: 10px;
border-radius: 50%;
background: #ef4444;
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.changelog-drawer {
position: fixed;
top: 0; right: 0; bottom: 0;
width: min(380px, 90vw);
background: #0f172a;
border-left: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
transform: translateX(100%);
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 1000;
display: flex;
flex-direction: column;
}
.changelog-drawer.is-open {
transform: translateX(0);
}
Step 3: Manage Unread Status and LocalStorage Tracking
Hide the notification dot once the user opens the panel and stores the latest version tag.
const LATEST_VERSION = 'v2.18.0';
const drawer = document.getElementById('changelogDrawer');
const unreadDot = document.getElementById('unreadDot');
function checkUnread() {
const readVer = localStorage.getItem('last_read_version');
if (readVer === LATEST_VERSION) {
unreadDot.style.display = 'none';
}
}
document.getElementById('btnChangelog').addEventListener('click', () => {
drawer.classList.add('is-open');
localStorage.setItem('last_read_version', LATEST_VERSION);
unreadDot.style.display = 'none';
});
document.getElementById('btnCloseChangelog').addEventListener('click', () => {
drawer.classList.remove('is-open');
});
checkUnread();
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 should SaaS apps use in-app changelogs rather than external blogs?
In-app changelogs reach active users directly inside your workflow, increasing feature adoption by 300% compared to external blog posts.
How do you handle keyboard Escape key dismissals?
Attach a window keydown listener: if `e.key === "Escape"`, remove the `is-open` class and return focus to the trigger bell.
Can the changelog fetch releases dynamically from GitHub releases API?
Yes, fetch `https://api.github.com/repos/{owner}/{repo}/releases` to automatically populate release summaries in real time.
How do you dim the background when the changelog flyout opens?
Add a backdrop overlay (`
Is this drawer accessible for screen readers?
Yes, using `role="dialog"`, `aria-modal="true"`, and `aria-label` ensures assistive technologies properly announce the panel modal.