
Poppy

Simple, Multipurpose Open Source Pop-in Messages
https://github.com/apvarun/poppyjs
Demo page
Features
- Customaziable options
- No dependency
Browser Support
- Chrome
- Safari
- Firefox
- IE 10+
- Edge
- Opera
Getting Started
npm
$ npm install poppyjs
or
$ yarn add poppyjs
Usage
ES6
import poppy from 'poppyjs'
let poppy = new Poppy({
title: {
text: "Hello Poppy",
color: "#556BA4"
},
content: "Time to switch to Poppy for a better user experience.",
cta: {
text: "Click me",
url: "https://github.com/apvarun/poppyjs",
color: "#556BA4",
newtab: true
},
position: "bottomLeft"
});
poppy.show();
Options
new Poppy({
title: {
text: String,
avatar: String,
color: String,
},
content: String,
cta: {
text: String,
url: String,
color: String,
newtab: Boolean,
onclick: Function,
},
coverImage: String,
position: String,
delay: Number,
closeAfter: Number,
})
Built With
Changelog
Refer CHANGELOG.md file for library changes
License
This project is licensed under the MIT License - see the LICENSE.md file for details