An open API service indexing awesome lists of open source software.

https://github.com/dckt/my-popin

Create your own popin (vanilla js)
https://github.com/dckt/my-popin

Last synced: about 1 month ago
JSON representation

Create your own popin (vanilla js)

Awesome Lists containing this project

README

        

# my-popin

Create your own popin

## Setup

`var Popin = require('my-select');`

## Example

```js
// app.js
var Popin = require('my-select');

document.addEventListener('DOMContentLoaded', function() {

var helloPopin = new Popin({
triggerElements:'.test'
});

}, false);
```
```html
Test



Close X
Hello

```

Note: if you can't add the overlay in your HTML, it will be append automatiatly.

## Support

This module use classList (IE10+), if you have to support below this version use [this polyfill](https://github.com/eligrey/classList.js/).