jQuery Plugin For Slick Image Hover Effects nsHover - Download jQuery Plugin For Slick Image Hover Effects - nsHover

Download jQuery Plugin For Slick Image Hover Effects – nsHover

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin For Slick Image Hover Effects – nsHover, hope it will help you in programming stack.

jQuery Plugin For Slick Image Hover Effects nsHover - Download jQuery Plugin For Slick Image Hover Effects - nsHover
File Size: 22.8 KB
Views Total: 7209
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

nsHover is a lightweight jQuery plugin that makes it easy to create animated, customizable hover effects on your images or block elements.

Key Features:

  • Generates a customizable background overlay covering the image on hover.
  • Custom background image, text, color, size, animation and opacity.
  • Custom text for the overlay. Similar to the image captions.
  • Also supports any block elements.

How to use it:

1. To use the plugin start with adding the following in your document.

1 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2 <script src="src/ns.hover.min.js"></script>

2. Add your images into one or different containers.

1 <div class="container">
2   <img src="1.jpg">
3   <img src="2.jpg">
4   <img src="3.jpg">
5 </div>

3. Call the nsHover() method on the parent container to generate a default hover effect on the child images.

1 $('.container').nsHover();

4. Customize the image hover effect by passing the options to the nsHover() as an object.

01 // scaling effect
02 // from 0.0 - 1.0
03 scaling : false,
04  
05 // animation speed
06 // normal, fast or slow
07 speed: 'normal',
08  
09 // the border radius
10 // none(0%), normal(5%), circle(50%), xx% or px
11 rounded: 'normal',
12  
13 // shows shadow
14 shadow: false,
15  
16 // background animation
17 // fade, scale or slide
18 bganim : 'fade',
19  
20 // background color
21 bgcolor: '#ffffff',
22  
23 // background opacity
24 bgopacity : 0.5,     
25  
26 // background image     
27 bgpic : 'imgs/lens.png',
28  
29 // background size
30 bgsize : '25%',
31  
32 // text for the overlay
33 content: ''

This awesome jQuery plugin is developed by nslabz. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net