Sign inSign up

jQuery Plugin for CSS Mouse Hover Image Overlay Animations

Add-ons
2026-07-26 06:27 7 views • 0 downloads 204.8KB
jQuery Plugin for CSS Mouse Hover Image Overlay Animations

Using this mouse hover

plugin requires including the jQuery and ns.hover.min.js files.

1
2
<script src="js/jquery.min.js"></script>
<script src="js/ns.hover.min.js"></script>


After the page DOM elements have finished loading, simply call the nsHover() method on the elements where you want to create hover effects. You can also call this method on a parent element to initialize all its child elements.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script>
$(container_class_or_id).nsHover({
scaling : false,
speed: 'normal',
rounded: 'normal',
bgcolor: '#ffffff',
bgopacity : 0.5,
bgpic : 'imgs/lens.png',
bgsize : '50%',
bganim : 'fade',
shadow : false,
content: ''
});
</script>