Git Product home page Git Product logo

vue-hover-zoom's Introduction

Vue Hover Zoom

Easy to use package for zoom image when hover on it with the mouse cursor

Getting started

  1. Install the package:
npm install vue-hover-zoom
  1. Import component:
import  VueHoverZoom  from  'vue-hover-zoom'
  1. Add component to components:
components: {  
  VueHoverZoom  
}
  1. Use component in template
<vue-hover-zoom imageUrl="https://test.com/img.png"></vue-hover-zoom>

✅ Config

You can config VueHoverZoom Component with props.

⚙ imageUrl:
❗ Required

⚙ imageAlt:
🔹 default: null

⚙ zoomPercent:
🔹 default: 200

⚙ zoomCursor:
🔹 default: true

⚙ animation:
🔹 default: fade
🔸 options: fade, shrink, growup, slidedown, slideup
You Can use multiple animations like: fade shrink

⚙ showWhenImageLoaded:
🔹 default: false
If you enable this, image shows when fully loaded

📌 Note

You can select the element in css and set image width.
default class: hover-zoom-image

vue-hover-zoom's People

Contributors

ahmadkzx avatar

Stargazers

Alauddin Afif Cassandra avatar Yasin Silavi avatar

Watchers

 avatar

vue-hover-zoom's Issues

Thanks brother!!! 👏🏼

Hi brothers, thanks about this plugins. you save my time. your plugin is very simple and awesome. works well on nuxtjs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.