Notification Animation

Size
2,603 Kb
Views
28,336

How do I make an notification animation?

What is a notification animation? How do you make a notification animation? This script and codes were developed by Simeon Simeonoff on 09 September 2022, Friday.

Notification Animation Previews

Notification Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Notification Animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container">	<div class="rectangle">	<div class="notification-text">	<i class="material-icons">info</i>	<span>&nbsp;&nbsp;This is a test notification.</span>	</div>	</div>
</div>
</body>
</html>

Notification Animation - Script Codes CSS Codes

html,
body { height: 100%;
}
.container { display: -webkit-box; display: -ms-flexbox; display: flex; height: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
.rectangle { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; positon: relative; width: 50px; height: 50px; background: #380848; -webkit-transform: scale(0); transform: scale(0); border-radius: 50%; color: white; opacity: 0; overflow: hidden; -webkit-animation: scale-in .3s ease-out forwards, expand .35s .25s ease-out forwards; animation: scale-in .3s ease-out forwards, expand .35s .25s ease-out forwards;
}
.notification-text { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 0 16px; font-family: 'Roboto', sans-serif; font-size: 14px; -webkit-animation: fade-in .65s ease-in forwards; animation: fade-in .65s ease-in forwards;
}
@-webkit-keyframes scale-in { 100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}
@keyframes scale-in { 100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}
@-webkit-keyframes expand { 50% { width: 350px; border-radius: 6px; } 100% { width: 300px; border-radius: 4px; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 3px 3px -1px rgba(0, 0, 0, 0.12); }
}
@keyframes expand { 50% { width: 350px; border-radius: 6px; } 100% { width: 300px; border-radius: 4px; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 3px 3px -1px rgba(0, 0, 0, 0.12); }
}
@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: .8; }
}
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: .8; }
}
Notification Animation - Script Codes
Notification Animation - Script Codes
Home Page Home
Developer Simeon Simeonoff
Username simeonoff
Uploaded September 09, 2022
Rating 4.5
Size 2,603 Kb
Views 28,336
Do you need developer help for Notification Animation?

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!

Simeon Simeonoff (simeonoff) Script Codes
Create amazing love letters 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!