Help Replicating This
As a tool to learn new techniques, I'm recreating things I find on the web. Today I'm trying to do the mouseover image effect seen on this website (while in desktop screen sizes) https://en.bazil.fr/
I managed to get close with this react hook...
... I noticed in dev tools that his image translated up to 3vw and 1vh respectively... but his is buttery smooth, and almost elasticated. The further the mouse moves away from the origin the less the image moves. Mine just stops at the movement cap... I made a sandbox
Any advice in getting this to work would be amazing. Thanks!
Bazil Hamard - Freelance webdesigner & photographer - Paris
Webdesigner, Webflow expert & photographer, I help you to create your graphic identity, to perpetuate your brand image and to design a website adapted to your needs.
1 Reply
What you're looking for is apparently the opposite of the effect Hyperplexed did here:
https://codepen.io/Hyperplexed/pen/wvQzbGz
You'd just need to fine tune it to your use case.
One easy step to begin is to pay attention to the
mouse.multiplier
object.
See where it was defined, play with the values and see how it affects the overall effect.