Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By socialtalker on
i came across this tutorial,
HTML5 Grayscale Image Hover
http://www.webdesignerwall.com/tutorials/html5-grayscale-image-hover/
I would love to use it, but don't know how to integrate it into drupal. How would you do that?
Comments
i would to use it too but no
i would to use it too but no succes, what i did :
- create a js file with the provided code
- include it in the header via
- attriibute a class to image , displayed via views so i rewrite the output like this :
- add the class to my css :
i've an issue with this JS : https://github.com/betamax/getImageData/raw/master/jquery.getimagedata.m...
i 've downloaded it to my jquery_plugin module folder, but seem to be not used...
but online images disappear...and nothing happen on hover...if someone get this working tell us..
thanks
Dev Server Shared Hosting
8 websites powered by drupal 6,8 & 9 - Hosted by Always Data
ok in drupal 7
Hi,
it works for me, I've taken this script into a custom.js (I'm under Drupal 7) :
The file is stored in my theme, under js/custom.js ; and is declared in my theme .info file :
scripts[] = js/custom.js
All you have to do then is include your images inside a span or div like
Do not fix any opacity for .item img into your css, or your grayscale images won't be shown.
hello
what does it mean one parameter named $. on function? and i have several galleria, so, how do I tag the images that will be working?
thanks ideesculture
thanks @ideesculture. it's works for me.
www.dhafy.com