vue-image-wall
v1.1.0
Published
An interactive vue component that displays multiple images in a row
Downloads
7
Maintainers
Readme
vue image wall
An interactive vue component that displays multiple images in a row.
By hovering mouse over one of the images, that image will expand in width.
Install
npm install vue-template-compiler --save-dev
npm install vue-image-wall
or
yarn add vue-template-compiler -D
yarn add vue-image-wall
Usage
FEATURES UNDER DEVELOPMENT
- Height is fixed to 250px, will be fixed
- Will add ability to accept config (scale of image, animation duration, etc)
<template>
<div id="app">
<vue-image-wall :link-images="images"></vue-image-wall>
</div>
</template>
<script>
import VueImageWall from 'vue-image-wall';
export default {
name: 'app',
components: { VueImageWall },
data: function () {
return {
images: [
'/assets/0.jpg',
'/assets/1.jpg',
'/assets/2.jpg',
'/assets/3.jpg',
'/assets/4.jpg'
],
};
},
};
</script>
<style scoped>
</style>
| props | type | default value | note |
|-----|------|-------|------|
| link-images | [String]
| (required) | Contains list of images that this component will display |
How to Contribute
Any comment/issue/PR is welcome!
TODO:
- Add two interaction modes
- macOS dock