st-click-detector
st-click-detector copied to clipboard
Hover effect
Hello,
Thank you for providing this excellent component. I'm really enjoying its functionality. I was wondering if it would be possible to enhance it further by adding the capability to detect hover effects on images, in addition to the click event. Specifically, I would like to implement a feature where a green layer is added on top of the image whenever a user hovers over it.
Hi @navid-mahmoudian . It isn't a feature of the plugin. Maybe it's possible to handle this with the CSS :hover pseudo-selector but as far as I know it cannot be used in inline CSS and another user reported that external CSS stylesheets don't apply to the HTML code in the component... Sorry I don't plan to update this component because of other ongoing projects but I welcome pull requests.
Just spent an hour trying this without success. Very interested to see if anyone finds a solution to achieve this!