A custom jQuery script to help you swap one image to another on hover easily using (jQuery, CSS)...
You can install directly by running npm directly from your command line interface like so:
npm install swapimagesonhover
The CDN is updated after the release is made public. Always, check the GitHub page for the latest release.
The "swim" class is ideal for use on images you would want swapped with another on a website. Very useful for e-commerce websites and fancy photo/gallery websites.
The data-img attribute is used to attach the second image of your choice you would want swapped. Once this is done, simply add your swim class to the image element and you're good to go (make sure jQuery script is included, it requires it to work properly). Here's a sample below...
Anyone and everyone is welcome to contribute.