1.0.0 • Published 6 years ago

toastmsg-js v1.0.0

Weekly downloads
2
License
CC-BY-4.0
Repository
github
Last release
6 years ago

ToastMsg Documentation

Inspired by Google Toast Message.

Include this file

<script src="https://cdn.jsdelivr.net/gh/tobiasroeder/toastmsg@1.0.0/js/toastmsg.min.js"></script>

Syntax (Example)

toastMsg({
	color: 'white',
	bgColor: '#444',
	fontSize: '22px',
	fontFamily: 'monospace',
	value: 'Hello World',
	position: 'right',
	duration: 2000
});

Parameter

ParameterTypeDefault
colorstring#fff
bgColorstring#242424
fontSizestring16px
fontFamilystring'Helvetica Neue', 'Helvetica', sans-serif
positionstringleft
durationnumber3000

Example here: https://tobiasroeder.github.io/toastmsg
Try it yourself