Notifications
How do I make an notifications?
Original project here: http://designitcodeit.com/i/16. What is a notifications? How do you make a notifications? This script and codes were developed by Kasper Mikiewicz on 21 November 2022, Monday.
Notifications - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Notifications</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html { font-size: 75%; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
body { margin: 20px auto 0 auto; width: 100%; max-width: 260px; text-align: center;
}
/** * Notifications */
.notification { position: relative; margin-left: 29px; padding-right: 32px; height: 34px; border-radius: 0 20px 20px 0; background-color: #fff; color: #585858; text-align: left; text-indent: 12px; font-size: 12px; line-height: 34px;
}
.notification:before { position: absolute; right: 100%; display: block; padding: 11px 8px; width: 12px; height: 12px; border-radius: 20px 0 0 20px; background-image: url(http://designitcodeit.com/live/rw8HFQ4eqhS8/img/notificationIcons.png); background-repeat: no-repeat; content: ''; border-right-style: solid; border-right-width: 1px;
}
.notification:after { position: absolute; top: 50%; left: -1px; margin-top: -5px; width: 0px; height: 0px; border-color: transparent transparent transparent #007bff; border-style: solid; border-width: 5px 0 5px 4px; content: '';
}
.notification .close { float: right; margin-right: -32px; padding: 0 10px; text-indent: 0; cursor: pointer;
}
/** * Customs */
.notification.error:before { background-color: #d3222a; background-position: 0 center; border-right-color: #af292e;
} .notification.error:after { border-left-color: #d3222a; }
.notification.success:before { background-color: #009661; background-position: -29px center; border-right-color: #0039a6;
} .notification.success:after { border-left-color: #009661; }
.notification.info:before { background-color: #0072cf; background-position: -58px center; border-right-color: #0039a6;
} .notification.info:after { border-left-color: #0072cf; }
.notification.warning:before { background-color: #f2ae00; background-position: -87px center; border-right-color: #ba8b00;
} .notification.warning:after { border-left-color: #f2ae00; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <p class="notification error">Your action forgiven will be not!</p>
<p class="notification success">Successfully you've done it.</p>
<p class="notification info">Very nice notifications you’ve here.</p>
<p class="notification warning">Warning notification this is.</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Notifications - Script Codes CSS Codes
html { font-size: 75%; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
body { margin: 20px auto 0 auto; width: 100%; max-width: 260px; text-align: center;
}
/** * Notifications */
.notification { position: relative; margin-left: 29px; padding-right: 32px; height: 34px; border-radius: 0 20px 20px 0; background-color: #fff; color: #585858; text-align: left; text-indent: 12px; font-size: 12px; line-height: 34px;
}
.notification:before { position: absolute; right: 100%; display: block; padding: 11px 8px; width: 12px; height: 12px; border-radius: 20px 0 0 20px; background-image: url(http://designitcodeit.com/live/rw8HFQ4eqhS8/img/notificationIcons.png); background-repeat: no-repeat; content: ''; border-right-style: solid; border-right-width: 1px;
}
.notification:after { position: absolute; top: 50%; left: -1px; margin-top: -5px; width: 0px; height: 0px; border-color: transparent transparent transparent #007bff; border-style: solid; border-width: 5px 0 5px 4px; content: '';
}
.notification .close { float: right; margin-right: -32px; padding: 0 10px; text-indent: 0; cursor: pointer;
}
/** * Customs */
.notification.error:before { background-color: #d3222a; background-position: 0 center; border-right-color: #af292e;
} .notification.error:after { border-left-color: #d3222a; }
.notification.success:before { background-color: #009661; background-position: -29px center; border-right-color: #0039a6;
} .notification.success:after { border-left-color: #009661; }
.notification.info:before { background-color: #0072cf; background-position: -58px center; border-right-color: #0039a6;
} .notification.info:after { border-left-color: #0072cf; }
.notification.warning:before { background-color: #f2ae00; background-position: -87px center; border-right-color: #ba8b00;
} .notification.warning:after { border-left-color: #f2ae00; }
Notifications - Script Codes JS Codes
/* * Notifications for Design it & Code it * http://designitcodeit.com/i/16 */
$('.notification').append( $('<span class="close">×</span>').on('click', function () { $(this).parent().fadeOut(); })
);
Developer | Kasper Mikiewicz |
Username | Idered |
Uploaded | November 21, 2022 |
Rating | 3 |
Size | 3,250 Kb |
Views | 26,312 |
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 |
Flat radio buttons | 2,759 Kb |
Comments thread | 3,601 Kb |
Confirmation button | 3,519 Kb |
Animated underline | 2,593 Kb |
Love button | 3,597 Kb |
Pagination | 3,868 Kb |
Simple loader | 2,645 Kb |
Pure CSS3 Tags | 4,052 Kb |
Color accordion | 1,925 Kb |
Hello bar | 3,237 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 |
Freecodecamp - Tribute Page | Samoht513 | 3,583 Kb |
CSSOff 2013 Submission | Codewunder | 14,766 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Slide out Menu | Rbiggs | 4,936 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Matrix | Stathisnikolaidis | 1,922 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!