Notification
How do I make an notification?
What is a notification? How do you make a notification? This script and codes were developed by Maharajan on 26 January 2023, Thursday.
Notification - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Notification</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <button class="inactive">InActive</button><button class="active">Active</button>
<div class="right_side"></div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Notification - Script Codes CSS Codes
body
{ position:relative; overflow:hidden;
}
.right_side
{ top: 71px; right: 30px; z-index: 4000; width:320px; overflow:hidden;
}
.right_side > div
{ transition: all 1s ease;
}
.activated
{ color: red; transition: all 1s ease; height: 56px; border: 2px solid red; width: 300px; text-align: center; border-radius: 5px; display:inline-block; margin-top:10px; }
.remove
{ display:none;
}
Notification - Script Codes JS Codes
$('.active').on('click',function() {
notify();
});
var click=0;
function notify()
{ click++; var top=0; var delay=5000; if($('.activated').length < 1) { $('<div class="activated active_'+click+'">Activated'+click+'</div>').appendTo('.right_side').delay(delay).animate({'margin-left':'400px','z-index':'0'},100); } else { top=$('.activated:last-child').position().top+80; delay=delay+3000; $('<div class="activated active_'+click+'">Activated'+click+'</div>').appendTo('.right_side').delay(delay).animate({'margin-left':'400px','z-index':'0'},100); }
}
setInterval(function() {
$('.activated').each(function() { if($(this).css('margin-left')=="400px") { $(this).css('display','none') }
});
},1000)
Developer | Maharajan |
Username | mhrjnsa1 |
Uploaded | January 26, 2023 |
Rating | 3 |
Size | 2,125 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Simeple snake design | 1,913 Kb |
Circle loader | 1,799 Kb |
Text appearance | 0 Kb |
Sound waves | 1,738 Kb |
Parallax slider | 1,936 Kb |
Locator | 1,669 Kb |
Pure css loader | 2,407 Kb |
A Pen by maharajan | 2,134 Kb |
Hover input | 2,148 Kb |
Memory game | 2,424 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Easing | GreenSock | 2,043 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
CSS Flip Animation | Bbodine1 | 2,525 Kb |
JS Beispiel getElementsByClassName 3 | HSZG-Frontend-Kurs | 1,988 Kb |
Wrap_Test | Mscfourn | 7,503 Kb |
Right Click Menu | Anodpixels | 2,252 Kb |
Chuck Norris Background | Manz | 1,967 Kb |
Search Box in Content Moves to Fixed Header | Chriscoyier | 2,768 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 Kb |
Countdown with Rings | Ewganoel | 2,490 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!