Bring festive energy to your ServiceNow Service Portal with this lightweight widget!
It displays falling seasonal emojis (π βοΈ π π) that change automatically based on the month β adding fun, motion, and seasonal charm to your portal π
Built entirely with HTML + CSS + JavaScript, this widget is easy to integrate and 100% client-side.
- π¦οΈ Automatic month detection β emojis switch seasonally
- π¨ Smooth animations β natural falling & swaying effects
- π§© No external libraries β pure CSS & JS
- β»οΈ DOM cleanup β removes emojis after animation to stay lightweight
- π¨ Customizable β change emoji sets, fall speed, size, or count
It dynamically creates multiple .faller elements positioned randomly across the viewport.
Each emoji:
- Uses CSS keyframes
fall(vertical motion) andsway(horizontal drift) - Moves down the screen naturally while gently swaying side-to-side
- Fades out gracefully once the fall animation completes
- Gets removed from the DOM after animation ends to keep things clean and performant
if (month === 10) { emojis = ["π", "π»", "π"]; } // October
else if (month === 11) { emojis = ["π", "π"]; } // November
else if (month === 12) { emojis = ["βοΈ", "βοΈ"]; } // December
else if (month === 1) { emojis = ["π", "π"]; } // JanuaryFollow these steps to add the widget to your Service Portal:
- Navigate to Service Portal β Widget Editor
- Click βCreate a new widgetβ
- Example name:
Seasonal Emoji Effect
- Example name:
- Copy and paste:
- The
<style>section β into the CSS field - The
<div>section β into the HTML Template field - The
<script>section β into the Client Script field
- The
- Save your widget
- Add it to your Service Portal homepage or any desired page layout
- Refresh the page β enjoy your seasonal animation! π
π‘ For testing, you can override the current month to preview different seasons:
var month = 12; // Force December emojis
| Option | Description | Example |
|---|---|---|
emojis |
Change emoji sets by month | Valentineβs β ππΉπ |
animation-duration |
Adjust fall speed | 10β15s recommended |
font-size |
Control emoji size | Default: 1.5em |
.faller:nth-of-type() |
Adjust number of falling emojis | Add/remove for more or fewer emojis |
β
100% client-side β no backend dependencies
β
Works across Chrome, Edge, Firefox, Safari
β
Mobile and tablet friendly
β
Automatically removes finished animations for performance
β
No external scripts or libraries required
servicenow-seasonal-emoji-widget/
βββ README.md
βββ demo/
β βββ demo.gif
βββ servicenow-seasonal-emoji-widget.html
Got creative ideas for new seasonal effects?
Fork or copy this Gist and try your own:
- π Christmas sparkle effect
- π Valentine hearts fall
- πΈ Spring blossoms theme
- πΆοΈ Summer vibes animation
Letβs make ServiceNow portals more fun and engaging together! π
If you try this widget or adapt it for your own ServiceNow portal, tag me on LinkedIn β
Iβd love to see how youβve brought seasonal flair to your Service Portal!
β If you found this useful, star or share this Gist so others can add seasonal magic to their portals too!
very informative