You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This snippet demonstrates how to create an animated notification badge using native ServiceNow client-side capabilities, without relying on direct DOM manipulation or inline styles.
4
+
It uses AngularJS and CSS to apply a pulsating animation to the badge, ideal for Portal widgets that require attention-grabbing indicators.
5
+
6
+

7
+
8
+
## 📦 Files
9
+
10
+
-`notification-badge.html` – Badge markup with conditional visibility
11
+
-`notification-badge.css` – Keyframe animation and badge styling
12
+
-`notification-badge.js` – Logic to trigger or reset badge visibility
13
+
14
+
## 🚀 How to Use
15
+
16
+
1. Copy the HTML, CSS, and client script into your custom Portal widget.
17
+
2. Bind the badge visibility to a condition (e.g., number of unread messages).
18
+
3. Use the `animate__pulse` class to trigger attention-grabbing animations.
0 commit comments