lightbox-module
v0.0.2
Published
1. Via NPM:
Downloads
62
Maintainers
Readme
Install
- Via NPM:
Install NPM package - https://www.npmjs.com/package/lightbox-module:
npm i lightbox-module
- The other way, you also can inject
lightbox.js
file into your HTML code:
<script src="/path/to/dist/lightbox.js"></script>
Usages
svelte example
<script lang="ts">
import { onMount } from "svelte";
import lighbox from "lightbox-module";
onMount(() => {
lighbox();
});
</script>
Development
$ yarn install
$ yarn dev
Build
$ yarn build
or:
$ npm run build
The dist
folder is automatically created and include file lightbox.min.js
Licence
[MIT]