clarity-lightbox

0.0.4 • Public • Published

Clarity Lightbox

Badge

GIF

How to use:

Include the following in your header:

NPM

You can install this package with npm: npm install clarity-lightbox

Or with custom html

<link rel="stylesheet" href="dist/css/clarify-lightbox.min.css>
<!--jQuery-->
<script
  src="http://code.jquery.com/jquery-3.3.1.slim.min.js"
  integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E="
  crossorigin="anonymous"></script>
  
<script src="dist/js/clarify-lightbox.min.js>

Or if you prefer to use a CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/clarity-lightbox@latest/dist/clarify-lightbox.min.css">
<!--jQuery-->
<script
  src="http://code.jquery.com/jquery-3.3.1.slim.min.js"
  integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E="
  crossorigin="anonymous"></script>
  
<script src="https://cdn.jsdelivr.net/npm/clarity-lightbox@latest/dist/clarify-lightbox.min.js"></script>

Then to use the plugin in your html: Place all the content of your page in

<div class="wrapper">
    <!-- Your website's content -->
</div>

And place your image you want to make a lightbox as following:

<a class="lightbox" href="img/img1.jpg">
    <img class="img-lightbox" src="img/img1.jpg">
</a>

Readme

Keywords

none

Package Sidebar

Install

npm i clarity-lightbox

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

3.06 MB

Total Files

30

Last publish

Collaborators

  • danielverh