Giter VIP home page Giter VIP logo

img-pan-zoom's Introduction

<img-pan-zoom>

Published on webcomponents.org

Image pan zoom element

Images are preloaded by img-loader and a spinner is shown until loaded Deep Zoom Images are supported

See Demos for more info

Usage

<img-pan-zoom src="demo/images/dez.jpg"></img-pan-zoom>

History

V2.0.0:

  • Polymer 2 support
  • Remove neon animation import

V1.1.0:

  • Init Deep Zoom Image support
  • Option to disbale fade in

V1.0.1:

  • Zoom in method
  • Zoom out method
  • Reset Zoom method
  • Fade in image on item added
  • Option to hide spinner

v1.0.0:

  • Init

Credits

img-pan-zoom's People

Contributors

ryanburns23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

img-pan-zoom's Issues

Change resolution when inserting SVGs

Is it possible to add a option to change the resolution when referencing a svg in img-pan-zoom?
I looked through your code but couldn't find a solution at all, maybe I'm blind, I don't know..

Pointer capturing doesn't work

In the demo:

  1. Zoom in
  2. Drag from inside of image to outside of browser window
  3. Release mouse button and return to inside of image

Expected result: Nothing should happen on the step 3

Actual result: Panning occurs

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.