Socket
Socket
Sign inDemoInstall

compare-image-slider

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    compare-image-slider

A simple interactive component for comparing two images


Version published
Weekly downloads
2
decreased by-90.91%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.1.15 (2020-07-27)

Note: Version bump only for package root

Readme

Source

compare-image-slider

npm Published on webcomponents.org npm

A simple tool for comparing two images.

To use the compare-image-slider component in your code:

From your project folder, install the component from npm.

npm install compare-image-slider

Import the component.

In a JavaScript module:

import "compare-image-slider";

In an HTML page:

<script type="module">
  import "./path-to/compare-image-slider/before-after-slider.js";
</script>

Or:

<script
  type="module"
  src="./path-to/compare-image-slider/before-after-slider.js"
></script>

Add the component to your application or component:

<compare-image-slider>
  <img slot="left" width="100%" src="./path-to/left-image.png" />
  <img slot="right" width="100%" src="./path-to/right-image.png" />
</compare-image-slider>

Keywords

FAQs

Last updated on 27 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc