GithubHelp home page GithubHelp logo

gyunt / zoom.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nishanths/zoom.js

0.0 1.0 0.0 716 KB

Medium's Image Zoom (no dependencies, IE 10+) https://nishanths.github.io/zoom.js

License: MIT License

Makefile 5.67% CSS 5.19% HTML 39.30% JavaScript 49.84%

zoom.js's Introduction

ZOOM.JS

A pure JavaScript image zooming plugin; as seen on Medium.com.

Has no dependencies on jQuery or Bootstrap.

This is a port of the original version by @fat: https://github.com/fat/zoom.js

Demo

https://nishanths.github.io/zoom.js

gif

Usage

  1. Link the zoom.js and zoom.css files to your site or application.
<link href="css/zoom.css" rel="stylesheet">
<script src="dist/zoom.js"></script>
  1. Add a data-action="zoom" attribute to the images you want to make zoomable. For example:
<img src="img/blog_post_featured.png" data-action="zoom">

Differences from the original implementation

The API is the same as in the original implementation. But browser compatibility may be lower since this does not use vendor prefixes.

Compatibility

Uses the transitionend event without vendor prefixes, so IE 10 or higher.

If you need improved compatibility, please create an issue.

License

Original license

The MIT License. © 2016 Nishanth Shanmugham.

zoom.js's People

Contributors

nishanths avatar fat avatar nielthiart avatar sethherr avatar kittygiraudel avatar blackheart340 avatar joe-callon avatar theskumar avatar cpommiss avatar

Watchers

JongGyun Kim 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.