Hey guys, hoping some one can help me with building this feature on a site I am developing. Basically it is a little interactive tab style preview for the sites latest blogs. I want the image to swap depending on the hovered item. And I want the info to be pulled in using the blog collection list.
I’m not sure if my terminology is right but I am either looking at using tabs with some custom code for the hover aspect or using a collection list with show/hide on hover.
Has anyone got any resources or tutorials that I can have a look at before building? Or how would you approach it?
Hey memetican, thanks for your input with this… I am almost there and was hoping you could help me trouble shoot something. For some reason the only one that works is the last item and I can’t figure out why since they should all work the same way shouldn’t they?
I am also struggling with getting the image wrapper to crop the image inside of it rather than squash it.
Sorry Michael, yeah it is this section (screenshot) on the home page. The cards are on the left and when you hover on them it changes the image on the right. But only the bottom one is working for some reason.
Partly… but they’re all the same image, except #3 is cropped differently.
As far as I can tell they’re working fine, there’s just no change to see visually.
So, I’ve changed the image for each one now so the functionality all works as it should. What I’m having trouble with is the insights-feature-image-wrapper always being 100% of Collection-wrapper-insights-feature and then the image to sit inside insights-feature-image-wrapper and crop proportionately.
I need the wrapper to crop the image as these probably wont all be the same ratio once the client gets their hands on it.
I can’t test it without publishing, but I’d usually make the image portion fill the frame, 100% 100%, and set it to fit: cover so that the image fully covers that space, and trims the edges.