Notifications

Size
3,250 Kb
Views
26,312

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 Previews

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(); })
);
Notifications - Script Codes
Notifications - Script Codes
Home Page Home
Developer Kasper Mikiewicz
Username Idered
Uploaded November 21, 2022
Rating 3
Size 3,250 Kb
Views 26,312
Do you need developer help for Notifications?

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!

Kasper Mikiewicz (Idered) Script Codes
Create amazing captions 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!