Giter Club home page Giter Club logo

venobox's Introduction

VenoBox

Responsive jQuery modal window plugin

Just another responsive jQuery lightbox plugin, suitable for images, inline contents, iFrames, Google Maps, Vimeo and YouTube videos.

The big difference compared to many others plugins like this is that VenoBox calculates the max width of the image displayed and preserves its height if is taller than the window (so in small devices you can scroll down the content, avoiding vertical microscopic resized images).

Demo: http://veno.es/venobox/

Quick start

Install

This package can be installed with:

  • npm: npm install venobox
  • bower: bower install venobox
  • composer: composer require nicolafranchini/venobox
  • yarn: yarn add venobox

Or download the latest release.

Static HTML

Put the required stylesheet at the top of your markup:

<link rel="stylesheet" href="/venobox/venobox.css" />

Put the script at the bottom of your markup right after jQuery:

<script src="/jquery/dist/jquery.js"></script>
<script src="/venobox/venobox.min.js"></script>

Usage

Insert one or more links with its custom class

<a class="venobox" href="image01-big.jpg"><img src="image01-small.jpg" alt="image alt"/></a>

Call the plugin function and your VenoBox is ready for all the selected links.

$(document).ready(function(){
  $('.venobox').venobox(); 
});

Documentation

The full documentation is available at http://veno.es/venobox/

License: released under the MIT License

venobox's People

Contributors

nicolafranchini avatar mendezcode avatar bennick avatar ahmadalfy avatar dmythro avatar m3g4p0p avatar stefanzmf avatar

Watchers

James Cloos avatar  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.