Git Product home page Git Product logo

xzoom's Introduction

Stories in Ready Build Status npm GitHub license Donate Donate Bitcoin

xZoom

jQuery Zoom Gallery plugin.

  • Supports jQuery starting from version 1.2.6.
  • A lof of options, effects and easy to use and customize
  • Lightweight ~14kb minified version.
  • You can load low and high res images separately.
  • Supports IE6+, Chrome, FireFox, Opera, Safari, Android, iOS
  • Supports Responsive output.
  • Have an API to integrate with other useful plugins like FancyBox, Magnific PopUp and HammerJS.

Installation

Use one of the following methods:

  • git clone [email protected]:payalord/xZoom.git
  • git clone https://github.com/payalord/xZoom.git
  • npm install xzoom
  • bower install xzoom
  • Download zip
  • Use CDN:
    • https://unpkg.com/xzoom/dist/xzoom.min.js
    • https://unpkg.com/xzoom/dist/xzoom.css

Quick Start

Step 1:

  1. Copy xzoom.min.js or xzoom.js file into your javascript folder.
  2. Copy xzoom.css file into your css folder, or copy the content of the xzoom.css file into your site style sheet.
  3. Copy example/images/xloading.gif to your images folder.

Step 2:

This goes into your site's Header Section:

<!-- get jQuery from the google apis or use your own -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

<!-- CSS STYLE-->
<link rel="stylesheet" type="text/css" href="css/xzoom.css" media="all" />

<!-- XZOOM JQUERY PLUGIN  -->
<script type="text/javascript" src="js/xzoom.min.js"></script>

Step 3:

Add xZoom markup into your HTML:

<img class="xzoom" src="path/to/preview_image_01.jpg" xoriginal="path/to/original_image_01.jpg" />

<div class="xzoom-thumbs">
  <a href="path/to/original_image_01.jpg">
    <img class="xzoom-gallery" width="80" src="path/to/thumbs_image_01.jpg"  xpreview="path/to/preview_image_01.jpg">
  </a>
  <a href="path/to/original_image_02.jpg">
    <img class="xzoom-gallery" width="80" src="path/to/preview_image_02.jpg">
  </a>
  <a href="path/to/original_image_03.jpg">
    <img class="xzoom-gallery" width="80" src="path/to/preview_image_03.jpg">
  </a>
  <a href="path/to/original_image_04.jpg">
    <img class="xzoom-gallery" width="80" src="path/to/preview_image_04.jpg">
  </a>
</div>

Step 4:

Initialize the plugin in "document ready" section of your javascript or at the end before </body>:

/* calling script */
$(".xzoom, .xzoom-gallery").xzoom({tint: '#333', Xoffset: 15});

Enjoy xZoom experience!

Documentation

For full list of options and how to setup, customize and work with xZoom plugin please read the manual.

More Examples

For more examples please check xZoom Sandbox

Donate

If you liked the plugin and want to say thanks or want to help us make it better - feel free to make a donation ;)

PayPal:

paypal

Bitcoin:

Donate Bitcoin

License

Apache License 2.0

xzoom's People

Contributors

lastobelus avatar payalord avatar waffle-iron avatar

Stargazers

 avatar  avatar

Watchers

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