Socket
Book a DemoInstallSign in
Socket

ember-image-zoom

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-image-zoom

Component which toggles a full screen image view on click and provides translateY adjustment on mousemove.

0.0.5
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Ember-image-zoom

Component which toggles a full screen image view on click and provides translateY adjustment on mousemove. DEMO: https://martinmalinda.github.io/ember-image-zoom

TODO:

  • Touch support
  • Checking if image is smaller than viewport
  • Add tests

Install

ember install ember-image-zoom

Example usage

smallImage: {
  src: "/images/image2-small.jpg",
  alt: "Small Image"
},
largeImage: {
  src: "/images/image2-full.jpg",
  alt: "Large image",
  srcset: "..."
}
{{image-zoom
  small=smallImage
  large=largeImage
}}

Component will set hasLoaded to true on the large object once the image has loaded. That's why using hash helper is not suitable anymore as it will not keep the hasLoaded information persistently.

Component uses ember-wormhole and it creates a destination element if needed. Different destination element can be set with wormholeDest attr.

Keywords

ember-addon

FAQs

Package last updated on 02 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.