jquery.bay-window
v0.0.5
Published
A jquery plugin that adds the floating window function.
Downloads
10
Maintainers
Readme
jquery.bay-window.js
A jquery plugin that adds the floating window function.
Use requestAnimationFrame and transform
Example
Installation
Include script after the jQuery library (unless you are packaging scripts somehow else):
<script src="/path/to/jquery.bay-window.min.js"></script>
Usage
If you want to use the default element(Built-in close button):
// If the bayWindowOption is used, the run method will be executed by default
$.createBayWindowElement(createBayWindowElementOption).bayWindow(
bayWindowOption | methodName
)
or use a custom element:
$(element).bayWindow(bayWindowOption | methodName)
// if need destroy
$(closeBtn).on('click', function () {
$(element).bayWindow('destroy')
})
use methods:
$(element).bayWindow(methodName)