I need a way to incorporate simple toastr (notification) functionality without using the toastr plugin.
After 5 seconds, I would like to remove the transitioned class from the most recently added element.
var loadNotification = function(typeClass, message) {
var notification = {
typeClass: typeClass || 'alert-success',
message: message
};
var template = UTILS.getHandleBarTemplate('#template-notification');
var templateMarkup = template(notification);
$('.notifications-area').append(templateMarkup);
$('.notifications-area').find('.q-notifications').last().addClass('transitioned');
};
Current Implementation: