Coder Social home page Coder Social logo

zoomin's Introduction

zoomIn

Simple jQuery plugin using CSS3 transforms to zoom elements.

Basic usage:

  <img src="/images/logo.png" alt="alternative text" />
  $('img').zoomIn();

You can also pass configuration object to function. Here is an example:

  $('img').zoomIn({
    'description': true, // default: false
    'message': 'My message', // default: null
    'zoom': 4.3, // default: 2, you can change zoom by mouse scroll, also note that zoom: 1 is img orginal size(visible on document, for more info check zoom section)
    'zoomMax': 6.66, // default: 10
    'zoomMin': -4, // default: 1.5, negative values will make element downside up ( ͡° ͜ʖ ͡°)
    'step': 0.01 // default: 0.5, simply change zoom value by step
  });

Zoom

Zoom is visible while mouse cursor is over zoomedIn element.

You can change zoom deph by mouse scroll. Please note that negative zoom is also able, you might change configuration object, like this:

  $(selector).zoomIn({ 'zoomMin': -n }); // where n is real number

zoomin's People

Contributors

marcincichocki avatar

Watchers

 avatar  avatar

Forkers

jyotie

zoomin's Issues

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.