Vue3 wrapper for img-comparison-slider component.
Refer to this doc for Vue2 support.
Usage examples: https://img-comparison-slider.sneas.io/examples.html
npm install --save @img-comparison-slider/vue
<template>
<ImgComparisonSlider>
<!-- eslint-disable -->
<img
slot="first"
style="width: 100%"
src="https://img-comparison-slider.sneas.io/demo/images/before.webp"
/>
<img
slot="second"
style="width: 100%"
src="https://img-comparison-slider.sneas.io/demo/images/after.webp"
/>
<!-- eslint-enable -->
</ImgComparisonSlider>
</template>
<script>
import { ImgComparisonSlider } from '@img-comparison-slider/vue';
export default {
name: 'ExampleComponent',
components: {
ImgComparisonSlider,
},
};
</script>