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 |
Locator | 1,669 Kb |
Boom | 1,794 Kb |
Circle loader | 1,799 Kb |
Sound waves | 1,738 Kb |
Parallax scrolling | 2,161 Kb |
Notification | 2,125 Kb |
A Pen by maharajan | 2,134 Kb |
Change background while click and hover | 1,740 Kb |
Simple register | 2,505 Kb |
Parallax slider | 1,936 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 |
Nice responsive team page | Infomiho | 3,139 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Blog | Rottingroom | 1,430 Kb |
CSS- UI Element States Pseudo-Classes | Tesla809 | 2,206 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
Flexbox Grid - equal height | DaveOrDead | 2,855 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!