0.0.2 • Published 1 year ago

lightbox-module v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Install

  1. Via NPM:

Install NPM package - https://www.npmjs.com/package/lightbox-module:

npm i lightbox-module
  1. 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