Notification

Developer
Size
2,125 Kb
Views
4,048

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 Previews

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)
Notification - Script Codes
Notification - Script Codes
Home Page Home
Developer Maharajan
Username mhrjnsa1
Uploaded January 26, 2023
Rating 3
Size 2,125 Kb
Views 4,048
Do you need developer help for Notification?

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!

Maharajan (mhrjnsa1) Script Codes
Create amazing blog posts with AI!

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!