Skip to content

Ralex91/Simple-ToastNotification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Toast Notification 🍞

Is a simple Notification Toast 🍞 JavaScirpt without any front-end libraries (except Font Awesome ), it can be used in any type of project and easily modified

🛠 Installation

  • Copy files from this repositorie in your website

    ./assets/toast.css

    ./assets/toast.js

  • Add these lines in your page

    Page header :

    <link rel="stylesheet" href="/assets/toast/toast.css"/>

    Page Body :

    <script type="text/javascript" src="/assets/toast/toast.js"></script>

🧩 Usage

To insert a notification in your page use the JS code:
toastNotif({
	text: 'Lorem Ipsum is simply dummy text of the printing', // Text
	color: '#5bc83f', // Color of Notification
	timeout: 5000, // Spawn time
	icon: 'valid' // Icon name (config in toast.js)
});

📚 Exemple

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Demo Toast Notification</title>
		
		<link rel="stylesheet" type="text/css" href="./toast.css">
	</head>
	<body>
		<script type="text/javascript" src="./toast.js"></script>
	</body>
</html>

🏷 Simplified by Ralex91

About

Simple Toast Notification Javascript,HTML & CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors