https://github.com/dckt/my-popin
Create your own popin (vanilla js)
https://github.com/dckt/my-popin
Last synced: 7 months ago
JSON representation
Create your own popin (vanilla js)
- Host: GitHub
- URL: https://github.com/dckt/my-popin
- Owner: DCKT
- Created: 2015-06-20T22:56:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T13:09:26.000Z (almost 11 years ago)
- Last Synced: 2025-02-11T13:27:58.474Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
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/).