Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc