Notifications
How do I make an notifications?
Working on some notification menu stuff. Kinda sloppy.. What is a notifications? How do you make a notifications? This script and codes were developed by Pete Nawara on 09 September 2022, Friday.
Notifications - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Notifications</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://cdn.jsdelivr.net/foundation/4.3.1/css/foundation.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! */ .contain { width: 500px; margin: 0 auto; position: relative; padding: 20px;
}
.notificationicon { height: 44px; position: absolute; top: 20px; left: 170px;
}
.notificationicon:hover { background: rgba(0, 0, 0, 0.5);
}
.notificationicon:hover i { color: #fff;
}
.notificationicon.on i { color: #ddd;
}
.notifications { max-width: 300px; width: 300px; background: #fff; border: 1px solid #ccc; padding: 0px; box-shadow: 0px 0px 20px #666; position: absolute; opacity: 1; top: 65px; transition: .2s; opacity: 0; left: 100px;
}
.notifications:before { content: ''; height: 10px; width: 10px; display: block; position: absolute; top: -20px; left: 140px; border: 10px solid #fff; border-color: transparent transparent #fff transparent;
}
.notifications.open { opacity: 1; transition: .2s;
}
.notifications li { padding: 5px; list-style-type: none;
}
.notifications li.titlebar { border-bottom: 1px solid #ccc; color: #666; font-size: 12px; cursor: inherit; padding: 2px 5px;
}
.notifications li.titlebar:hover { background: #fff;
}
.notifications li.titlebar .settings { float: right; cursor: pointer;
}
.notifications li.seeall { text-align: center; font-size: 12px; min-height: 30px; text-transform: uppercase; position: relative; border-top: 1px solid #ccc;
}
.notifications li.seeall a { background: #f5f5f5; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; color: #007fff; padding-top: 8px;
}
.notifications .notifbox { max-height: 300px; overflow: auto;
}
.notifications .notifbox li { color: #666;
}
.notifications .notifbox li a { color: #666;
}
.notifications .notifbox li.unread { background: #e5f2ff;
}
.notifications .notifbox li.notif { min-height: 70px; border-bottom: 1px solid #ccc; position: relative;
}
.notifications .notifbox li.notif:last-child { border-bottom: none;
}
.notifications .notifbox li.notif .imageblock { width: 70px; position: absolute; left: 5px;
}
.notifications .notifbox li.notif .imageblock .notifimage { height: 60px;
}
.notifications .notifbox li.notif .messageblock { width: 200px; position: relative; left: 70px; font-size: 12px;
}
.notifications .notifbox li.notif .messageblock .message a { color: #007fff;
}
.notifications .notifbox li.notif .messageblock .messageaction { min-height: 30px; margin-bottom: 5px;
}
.notifications .notifbox li.notif .messageblock .messageaction .button { font-weight: normal; text-transform: uppercase;
}
.notifications .notifbox li.notif .messageblock .messageaction .button.success,
.notifications .notifbox li.notif .messageblock .messageaction .button.alert { color: #fff;
}
.notifications .notifbox li.notif .messageblock .messageinfo { font-size: 10px; color: #999;
}
.badge { position: absolute; top: 30px; right: -20px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <body> <div class="contain"> <a href="#" class="button notificationicon on">Check Notifications</a> <ul id="notificationMenu" class="notifications"> <li class="titlebar"> <span class="title">Notifications</span> <span class="settings"><i class="icon-cog"></i> </span> </li> <div class="notifbox"> <li class=" notif unread"> <a href="#"> <div class="imageblock"> <img src="https://si0.twimg.com/profile_images/3186728694/7a0e012910e06dd1476c5edac8b9a28d_bigger.jpeg" class="notifimage" /> </div> <div class="messageblock"> <div class="message">This guy <strong>Jonesy</strong> has just built a tower. </div> <div class="messageinfo"> <i class="icon-trophy"></i>2 hours ago </div> </div> </a> </li> <li class=" notif unread"> <a href="#"> <div class="imageblock"> <img src="https://si0.twimg.com/profile_images/712543138/Self-Portrait-in-Stripes_bigger.jpg" class="notifimage" /> </div> <div class="messageblock"> <div class="message"> <strong>Pete Nawara</strong> want's to drink beer with you </div> <div class="messageaction"> <a class="button tiny success">accept</a> <a class="button tiny alert">decline</a> </div> <div class="messageinfo"> <i class="icon-flag"></i>3 hour ago </div> </div> </a> </li> <li class=" notif"> <a href="#"> <div class="imageblock"><img src="https://si0.twimg.com/profile_images/3312733808/5caeaec6d93114657c40fb257f933d28_bigger.jpeg" class="notifimage" /> </div> <div class="messageblock"> <div class="message"><strong>Gary LaPlante</strong> has talked some trash: "<em>Buncha bitches.</em> </div> <div class="messageinfo"> <i class="icon-comment"></i>4 hours ago </div> </div> </a> </li> <li class=" notif"> <a href="#"> <div class="imageblock"><img src="https://si0.twimg.com/profile_images/378800000168755934/c05afa029d7e42c59e7cca0ea0564a86_bigger.jpeg" class="notifimage" /></div> <div class="messageblock"> <div class="message"><strong>Jason Nawara</strong> is probably playing <strong>Smite</strong> right now. </div> <div class="messageinfo"><i class="icon-trophy"></i>Yesterday</div> </div> </a> </li> <li class=" notif"> <a href="#"> <div class="imageblock"><img src="https://si0.twimg.com/sticky/default_profile_images/default_profile_2_bigger.png" class="notifimage" /> </div> <div class="messageblock"> <div class="message"><strong>Danny DK12</strong> got a sweet fade!</div> <div class="messageinfo"><i class="icon-flag"></i>Yesterday</div> </div> </a> </li> <li class=" notif"> <a href="#"> <div class="imageblock"><img src="https://si0.twimg.com/profile_images/1091562021/me-small_bigger.png" class="notifimage" /></div> <div class="messageblock"> <div class="message"><strong>Roidberg</strong> left you a comment: "<em>Hey buddy! Nice toenails!"</em></div> <div class="messageinfo"><i class="icon-comment"></i>2 hours ago</div> </div> </a> </li> </div> <li class="seeall"> <a>See All</a> </li> </ul> </div>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/foundation/4.1.2/js/foundation.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Notifications - Script Codes CSS Codes
.contain { width: 500px; margin: 0 auto; position: relative; padding: 20px;
}
.notificationicon { height: 44px; position: absolute; top: 20px; left: 170px;
}
.notificationicon:hover { background: rgba(0, 0, 0, 0.5);
}
.notificationicon:hover i { color: #fff;
}
.notificationicon.on i { color: #ddd;
}
.notifications { max-width: 300px; width: 300px; background: #fff; border: 1px solid #ccc; padding: 0px; box-shadow: 0px 0px 20px #666; position: absolute; opacity: 1; top: 65px; transition: .2s; opacity: 0; left: 100px;
}
.notifications:before { content: ''; height: 10px; width: 10px; display: block; position: absolute; top: -20px; left: 140px; border: 10px solid #fff; border-color: transparent transparent #fff transparent;
}
.notifications.open { opacity: 1; transition: .2s;
}
.notifications li { padding: 5px; list-style-type: none;
}
.notifications li.titlebar { border-bottom: 1px solid #ccc; color: #666; font-size: 12px; cursor: inherit; padding: 2px 5px;
}
.notifications li.titlebar:hover { background: #fff;
}
.notifications li.titlebar .settings { float: right; cursor: pointer;
}
.notifications li.seeall { text-align: center; font-size: 12px; min-height: 30px; text-transform: uppercase; position: relative; border-top: 1px solid #ccc;
}
.notifications li.seeall a { background: #f5f5f5; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; color: #007fff; padding-top: 8px;
}
.notifications .notifbox { max-height: 300px; overflow: auto;
}
.notifications .notifbox li { color: #666;
}
.notifications .notifbox li a { color: #666;
}
.notifications .notifbox li.unread { background: #e5f2ff;
}
.notifications .notifbox li.notif { min-height: 70px; border-bottom: 1px solid #ccc; position: relative;
}
.notifications .notifbox li.notif:last-child { border-bottom: none;
}
.notifications .notifbox li.notif .imageblock { width: 70px; position: absolute; left: 5px;
}
.notifications .notifbox li.notif .imageblock .notifimage { height: 60px;
}
.notifications .notifbox li.notif .messageblock { width: 200px; position: relative; left: 70px; font-size: 12px;
}
.notifications .notifbox li.notif .messageblock .message a { color: #007fff;
}
.notifications .notifbox li.notif .messageblock .messageaction { min-height: 30px; margin-bottom: 5px;
}
.notifications .notifbox li.notif .messageblock .messageaction .button { font-weight: normal; text-transform: uppercase;
}
.notifications .notifbox li.notif .messageblock .messageaction .button.success,
.notifications .notifbox li.notif .messageblock .messageaction .button.alert { color: #fff;
}
.notifications .notifbox li.notif .messageblock .messageinfo { font-size: 10px; color: #999;
}
.badge { position: absolute; top: 30px; right: -20px;
}
Notifications - Script Codes JS Codes
$(document).ready(function () { $(".notificationicon").click(function () { $(this).toggleClass("open"); $("#notificationMenu").toggleClass("open"); });
});
![Notifications - Script Codes](http://shots.codepen.io/petebot/pen/CpKzI-512.jpg)
Developer | Pete Nawara |
Username | petebot |
Uploaded | September 09, 2022 |
Rating | 3.5 |
Size | 5,037 Kb |
Views | 32,384 |
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 |
ScrollMagic playpen | 3,430 Kb |
The Team | 9,384 Kb |
Mr. Blinky | 5,148 Kb |
CSS Modal | 3,981 Kb |
Audio Compare | 7,239 Kb |
Card flip | 4,481 Kb |
Toggle Time | 5,345 Kb |
Ridonk Expando | 4,258 Kb |
Text Shadow | 2,195 Kb |
Woman in Vintage Sunglasses | 282,518 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 |
Isometric css island | Xaddict | 2,950 Kb |
Display properties | Hamzaerbay | 1,886 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Myprofile | SoufianeAbid | 2,451 Kb |
Wikipedia Viewer | Thalpha | 4,426 Kb |
IPhone5S SVG Space Grey | Onlinechris | 75,035 Kb |
Fading text with CSS blend modes | Giana | 3,305 Kb |
Touch Carousel - last, no gaps. | Berkin | 4,332 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 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!