Code Monkey home page Code Monkey logo

jquery-fluidbox's Introduction

Fluidbox

Fluidbox is a simple, lightweight but modern lightbox plugin written in javascript using jQuery and CSS3. Lightbox plugins are quite commonly used on modern websites to show users an image, multiple images or other content using a modal dialog.

Documentation/demo page: http://mdeboer.github.com/jquery-fluidbox/

Images on demo page courtesy of Maarten de Boer [email protected]

Copyright (c) 2012 - 2013 Maarten de Boer - [email protected]

Features

  • Easy implementation into your website
  • Smooth transitions with CSS3 using Animate.css
  • Touch screen support with multi-touch gestures using Hammer (optional)
  • Support for mobile phones and tablets
  • Works in browsers without CSS3 animation support!
  • Lot's of customization support

Also, check the issues tracker for more coming features or post your own ideas!

Getting started

To get started: include jQuery, Modernizr, Hammer (optional) and Fluidbox in the HEAD of your page like this:

<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Necessary -->
    <script language="javascript" src="js/jquery-1.8.3.min.js"></script>
    <link rel="stylesheet" href="css/animate.min.css">
    
    <!-- Optional -->
	<script language="javascript" src="js/modernizr.custom.min.js"></script>
    <script language="javascript" src="js/hammer.min.js"></script>
    
    <!-- Fluidbox -->
    <script language="javascript" src="js/jquery.fluidbox.js"></script>
    <link rel="stylesheet" href="css/jquery.fluidbox.css">
</head>
...

After that, include some images (or links to images) in your document to be used with fluidbox. Give them all a class attribute, for example: 'fluidbox'. Optionally include a rel attribute to group images into a gallery or leave it out to show a single image.

<a href="images/image1_big.jpg" class="fluidbox" rel="sample-gallery" title="Image 1"><img src="images/image1_thumbnail" /></a>
<a href="images/image2_big.jpg" class="fluidbox" rel="sample-gallery" title="Image 2"><img src="images/image2_thumbnail" /></a>

or:

<a href="images/image1_big.jpg" class="fluidbox" rel="sample-gallery" title="Image 1">Link to image 1</a>
<a href="images/image2_big.jpg" class="fluidbox" rel="sample-gallery" title="Image 2">Link to image 2</a>

Last thing we need to do is initialize Fluidbox!

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

For more information and examples please see the documentation/demo page in the demo folder or check out the online version: http://mdeboer.github.com/jquery-fluidbox/

Enjoy!

jquery-fluidbox's People

Contributors

mdeboer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jquery-fluidbox's Issues

Animations per item in Opera

Opera only uses the custom "out" animation and not the "in" animation when assigning animations per item such as demonstrated on the demo page.

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.