All Projects → kugatsu765 → vueNotification

kugatsu765 / vueNotification

Licence: MIT license
Notification plugin for VuesJS

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vueNotification

toaststrap
A simple, lightweight JavaScript library for showing Bootstrap 5 toast popups.
Stars: ✭ 16 (-69.23%)
Mutual labels:  toastr, toast-notifications
prophetjs
Vanilla JS library to display toast messages.
Stars: ✭ 31 (-40.38%)
Mutual labels:  toastr
simple-notify
Pure javascript toast notifications.
Stars: ✭ 108 (+107.69%)
Mutual labels:  toast-notifications
vue-inview
vue-plugin for in-view package
Stars: ✭ 100 (+92.31%)
Mutual labels:  vuejs-plugin
vue-feather-icon
No description or website provided.
Stars: ✭ 109 (+109.62%)
Mutual labels:  vuejs-components
generative-art
🌈🎨 Generative Art is the idea realized as genetic code of artificial events, as construction of dynamic complex systems able to generate endless variations. This is also a nuxt-module (@luxdamore/nuxt-canvas-sketch) - [three.js, tensorflow.js and gsap are not included].
Stars: ✭ 41 (-21.15%)
Mutual labels:  gsap
folio
Interactive Portfolio with Next, GSAP, Tailwind, and React
Stars: ✭ 20 (-61.54%)
Mutual labels:  gsap
GlitchyGrid
An experimental grid layout slideshow with a stack-like navigation and glitch effect.
Stars: ✭ 33 (-36.54%)
Mutual labels:  gsap
nuxt-gsap-module
GSAP module for Nuxt.js
Stars: ✭ 183 (+251.92%)
Mutual labels:  gsap
vue-rss-feed
Embed RSS Feeds in your Vue web app
Stars: ✭ 37 (-28.85%)
Mutual labels:  vuejs-components
HTML5-Banners
HTML5 animated banner boilerplate. Built for Doubleclick & Sizmek ad management platforms.
Stars: ✭ 47 (-9.62%)
Mutual labels:  gsap
vue-horizontal-calendar
a horizontal calendar component for Vue.js
Stars: ✭ 37 (-28.85%)
Mutual labels:  vuejs-components
honkai-starrail-scene
【崩坏:星穹铁道】预约页场景提取
Stars: ✭ 33 (-36.54%)
Mutual labels:  gsap
POS---Point-Of-Sales
Point of sales proof of concept developed using Asp.Net Core 2.2. Features: Customer, Vendor, Product, Purchase Order, Goods Receive, Sales Order, Inventory Transactions and POS form.
Stars: ✭ 120 (+130.77%)
Mutual labels:  toastr
tweenslideshow
A simple slideshow using Tweenmax
Stars: ✭ 34 (-34.62%)
Mutual labels:  gsap
Modern.JS
모던 자바스크립트 라이브러리/프레임워크 × KIPFA(한국인터넷전문가협회)
Stars: ✭ 16 (-69.23%)
Mutual labels:  gsap
PidginWinToastNotifications
Windows Toast Notification Plugin for Pidgin
Stars: ✭ 23 (-55.77%)
Mutual labels:  toast-notifications
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (-50%)
Mutual labels:  toast-notifications
portfolio
Personal portfolio (2018)
Stars: ✭ 388 (+646.15%)
Mutual labels:  gsap
vuelendar
Simple and clean calendar written in Vue.js
Stars: ✭ 76 (+46.15%)
Mutual labels:  vuejs-components

Notification Vue JS 🚀

🚨🚨🚨 Not maintained anymore

The Notification vue plugin allows you to display notifications from anywhere within your app. Just with one line of code. This notification plugin is unique from others as it utilises the GSAP library allowing you to animate your notifications in a near limitless number of ways

img vue notification img vue notification

How to use it

Install with npm. If you don't already have GSAP in your project, you also have to install it.

npm i @kugatsu/vuenotification --save
npm i gsap --save

Import with ES6

import VueNotification from "@kugatsu/vuenotification";

Vue.use(VueNotification, {
  timer: 20
});

Emit the notification where you want.

this.$notification.new("hello world", {  timer: 10 });
this.$notification.error("hello world", { infiniteTimer: false });
...

Parameters

Name Type Default value
message String "🚧 You missed something ..."
title String null
timer Number 5(s)
infiniteTimer Boolean false
position String topRight
type String primary
[type] Object ( See type section )
showLeftIcn Boolean true
showCloseIcn Boolean false
animateIn Function ()=> TimelineMax
animateOut Function ()=> TimelineMax
messageIsHTML Boolean false

position

Name Value
top center topCenter
top left topLeft
top right topRight
bottom center bottomCenter
bottom left bottomLeft
bottom right bottomRight

Type

There are 5 notifications types.

  • primary
  • dark
  • success
  • warning
  • error

To customise the colors of the notification you can do this globally or locally :

// Sample to change all error notifications
Vue.use(NotificationVuejs, {
  error: {
    background: "green",
    color: "red"
  }
});

Animation

To animate the in and out animation, we use GSAP. To customize the default animation, you have to add to your config object. animateIn and animateOut with a function that returns a gsap timeline.

Vue.use(NotificationVuejs, {
  animateIn: function() {
    var tl = new TimelineMax()
      .from(this.notificationEl, 0.6, {
        opacity: 0
      })
      .from(this.notificationEl, 0.4, {
        borderRadius: 100,
        width: 58,
        height: 58
      })
      .from(this.notificationElContent, 0.3, {
        opacity: 0
      });
    return tl;
  }
});

You can select the notification with a custom selector.

Selector Value to use
all notification this.notification
current notification this.notificationEl
all content of the notification this.notificationElContent
Notification title this.notificationTitle
Notification message this.notificationMessage
Notification icone this.notificationIcone
Notification close button this.notificationIconeClose

Credit

Icones

Icons made by Pixel perfect, Smashicons from www.flaticon.com is licensed by CC 3.0 BY
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].