You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a gallery of images, when i hover a single image i should read the mouse position relative to the image and based on the position animate the image (its a basic skew animation).
Before switching to the new GatsbyImage i was using the previous one (sometime the BackgroundImage), and inside the tag i had the following code:
so when moving over the image i was passing my position to the animate function and animate;
now with GatsbyImage picRef return undefined;
before wrapping everything inside a div and ref to the div, since GatsbyImage already wrap inside a div, i was wondering if i can set a ref here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a gallery of images, when i hover a single image i should read the mouse position relative to the image and based on the position animate the image (its a basic skew animation).
Before switching to the new GatsbyImage i was using the previous one (sometime the BackgroundImage), and inside the tag i had the following code:
so when moving over the image i was passing my position to the animate function and animate;
now with GatsbyImage picRef return undefined;
before wrapping everything inside a div and ref to the div, since GatsbyImage already wrap inside a div, i was wondering if i can set a ref here
Thank you
Beta Was this translation helpful? Give feedback.
All reactions