Coder Social home page Coder Social logo

asoszoom's Introduction

#AsosZoom 1.0.0 ##Asos style image magnifier as jQuery plugin

###Why should I use this plugin?

  • ???
  • ???

For complete documentation, examples, and a good time, visit:

http://??

Written by: Pagepro - http://pagepro.pl

###License Released under the MIT license - http://opensource.org/licenses/MIT

##Installation

###Step 1: Link required files

First and most important, the jQuery library needs to be included (no need to download - link directly from Google). Next, download the package from this site and link the AsosZoom CSS file (for the theme) and the AsosZoom Javascript file.

<!-- jQuery library (served from Google) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- AsosZoom Javascript file -->
<script src="/js/asos.zoom.min.js"></script>
<!-- AsosZoom CSS file -->
<link href="/lib/asos.zoom.css" rel="stylesheet" />

###Step 2: Create HTML markup

Create a <a class="asosZoom"> element, with href pointing to big image.

<a class="asos-zoom" href="/images/big-image.jpg"><img src="/images/thumbnail.jpg" /></a>

###Step 3: Call the asosZoom

Call .asosZoom() on <a class="asos-zoom">. Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!

$(document).ready(function(){
  $('.asos-zoom').asosZoom();
});

##Configuration options

###General

zoom

Type of zoom dimension

default: 'vertical'
options: 'vertical', 'horizontal'

speed

Zoom fadeIn effect transition duration (in ms)

default: 500
options: integer

closeButtonTemplate

HTML template for close button

default: '<a href="#" id="asosZoom__content__close">{{closeText}}</a>'
options: string

closeText

Text displayed on close button

default: 'x'
options: string

###Thumbnails

thumbnails Display thumbnails in gallery mode

default: true
options: boolean (true / false)

thumbnailPosition

Position of thumbnails

default: 'vertical'
options: 'vertical', 'horizontal'

###Controls

controls

Display left / right arrows in gallery mode

default: true
options: boolean (true / false)

arrowsTemplate HTML template for left / right arrows

default: '<a href="#" id="asosZoom__content__next">{{nextText}}</a><a href="#" id="asosZoom__content__prev">{{prevText}}</a>'
options: string

nextText Text to be used for the "Next" control

default: '&gt;'
options: string

prevText Text to be used for the "Prev" control

default: '&lt;'
options: string

###Overlay

overlayColor Color of overlay under the zoom popup

default: '#000000'
options: string

overlayOpacity Opacity of overlay under the zoom popup

default: '0.7'
options: int

###Callbacks

onDisplayed Executes immediately after zoom popup is displayed

default: function(){}
options: function(){ // your code here }

onClose Executes immediately after zoom popup is displayed

default: function(){}
options: function(){ // your code here }

asoszoom's People

Contributors

klojniewski-pagepro avatar

Watchers

James Cloos avatar Norbert Kamieński avatar  avatar Marek Jakimiuk avatar Katarzyna Stefanowicz avatar

Forkers

daniil1402

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.