Notification
INEX SPA - Notifications System Documentation
š Feature: In-Site Notifications
The Notifications system in INEX SPA allows developers to show beautiful, animated messages inside any part of the page. It supports multiple positions, types, and stacking notifications dynamically.
āļø Enable Notifications
To enable this feature, open your .env
file and set:
Once enabled, the JavaScript function showNotification()
will be available globally.
š Files & Location
Notification Script:
/public/JS/showNotification.js
Stylesheet: Inline or dynamically injected
š§ Function: showNotification(message, position = 'bottom-right', duration = 3000, type = 'primary')
showNotification(message, position = 'bottom-right', duration = 3000, type = 'primary')
Parameters:
message
(string) ā The message to show.position
(string) ā Optional. One of:bottom-right
,bottom-left
,top-right
,top-left
duration
(number) ā Optional. Time in milliseconds before the notification auto-hides. Default is3000
ms.type
(string) ā Optional. One of:success
,info
,danger
,primary
,secondary
Example:
⨠Features
Hyper animated gradients
Smooth entrance and exit animations
Multiple notifications stack at once
Auto hide after a given time
Manual hide via
*
button
šØ Styling
Each type
changes the background styling to match the purpose of the message. Positions are aligned with fixed CSS and animated using fade-in/out effects.
ā Notes
No library required
Automatically injects styles
Customizable via the script file
Works even without a framework
ā
Status
ā Lightweight ā Easy to configure ā Extensible ā No external libraries
Ā© INEX SPA Team - Notification System
Last updated