Skip to content

Commit 09fcf81

Browse files
Create README.md
Creation of the README, containing: - Introduction - Demonstration - Files - How to use
1 parent 6ec39d4 commit 09fcf81

File tree

1 file changed

+18
-0
lines changed
  • Modern Development/Service Portal Widgets/Animated Notification Badge

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 🔔 Animated Notification Badge
2+
3+
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+
![Demo of animated badge](./animated-badge.gif)
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

Comments
 (0)