
HoverImage is a plugin made by me, Alejandro Barrante Cano, which objective is to improve the performance of the "hover" and "click" functions in a gallery of images. The main behavior of the plugin is:
In order to do this, I used JQuery and JavaScript. If you continue reading, below I will explain how to use the plugin easily.
HoverImage is a free plugin and you can get to the source code in my github. Feel free to download the file and share it whenever you mention the authorship of the plugin.
Follow these easy steps and you're plugin will be working in a few minutes:
Remember that, if you changed the class .composition in Step 1, you will need to change the name of the class in the line you introduce in this step.
This plugin is intended to use in few and easy steps but, as you can see, if you don't modify the CSS you are forced to use my styles. I recommend you that, if you know something about CSS, try to change the styles to accommodate your website style. If you open the styles.css file you will see that there are little styles applied.
The only two classes that you should not modify in CSS are .imagehover and .texthover, because theses classes are set in the plugin. If you want to change these names, you should open the plugin.js file and change the names of that classes in that file (but I don't recommend you to do this unless you control JQuery or Javascript).
Well, that's all, I hope this plugin-in will be useful for your websites. If you find any bug, error or improvement for the plugin, write me an e-mail to:
Goodbye, and I hope you enjoy my work!