lumos
What is lumos?
Lumos is a simple javascript library to add an image overlay to your website.
Why use it?
- easy to set up
- customizable
- lightweight (total 3KB)
- responsive
- no dependencies
Demo
Check out the official website.
Usage
- Add
lumos.css
to your HTML<link rel="stylesheet" href="lumos.css"> <link rel="stylesheet" href="your-stylesheet.css">
- Add
lumos-min.js
to your HTML<script src="lumos-min.js"></script> <script src="your-scripts.js"></script>
- Add the
data-action="lumos"
tag to your images<img data-action="lumos" src="image.jpg">
- Optional: If you want to have small images on your website and display a high resolution image only if the user clicks on it: add the
data-lumos-src
tag to your images with an url to your high resolution image<img data-action="lumos" src="small-image.jpg" data-lumos-src="big-image.jpg">
- Et voilà , you are ready to go
Customization
You can modify the look of the lumos overlay with your own stylesheets.
License
Licensed under the MIT license.