Giter Club home page Giter Club logo

lumos's Introduction

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

  1. Add lumos.css to your HTML
    <link rel="stylesheet" href="lumos.css">
    <link rel="stylesheet" href="your-stylesheet.css">
  2. Add lumos-min.js to your HTML
    <script src="lumos-min.js"></script>
    <script src="your-scripts.js"></script>
  3. Add the data-action="lumos" tag to your images
    <img data-action="lumos" src="image.jpg">
  4. 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">
  5. 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.

lumos's People

Contributors

oliverschwendener avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.