-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applying effect on multiple images #54
Comments
Hi @archimedo, did you have a look at that pen: https://codepen.io/martinlaxenaire/pen/jeZyZM ? Cheers, |
I could fix that issue by setting the opacity to:0 instead of not displaying the image! the links now work just fine! I just wanted to ask you if it's possibile to soften the effect a little bit. My gallery has rows with 3 columns so the images aren't really big, so when I hover a picture, the closest ones start to wave as well. I was looking a at the code trying figuring out where the intensity of the wave is defined but I couldn't find. Can you help which variables should I tweak in order to make the wave effect a bit less intense? Thank you so much! |
Well, there's an uniform called Just tweak the last line of code where the // reassign mouse strength (you can try with different distanceFactor values)
const distanceFactor = 0.5;
plane.uniforms.mouseStrength.value = 1 - Math.sqrt(Math.pow(mouseCoords.x, 2) + Math.pow(mouseCoords.y, 2)) * distanceFactor; Cheers, |
Hi everyone, and thank you Martin for developing such an cool library. I would like to apply this effect on several images on a website I'm building with Wordpress. Starting from that example I've tried adding another image but unfortunately I wasn't able to get the same effect. It just show one image and, I'm not sure why, it appears black.
In this codepen there's my attempt. I have to say I'm quite new to WebGl and Shaders but I've been trying to keep up
https://codepen.io/archemede/pen/mdPjRve
Can you help understand what I'm doing wrong?
Thank you so much!
The text was updated successfully, but these errors were encountered: