Skip Navigation

[Resolved] Zoom on hover issue

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 1 year ago.

Assisted by: Nigel.

Author
Posts
#2660987

In this page: hidden link I have a view with an image grid. I'd like the image to have a zoom effect on hover, and managed to add it. I have added the zoom effect and created a parent div with overflow:hidden so that the images don't go over the container boundaries.

The problem is that the bottom of the image still goes beyond the limits of its parent div.

I cannot add fixed sizes to the images as this won't work responsively... I have seen that if I change .tb-image .tb-image-caption-fit-to-image display value from table to flex, the image behaves correctly BUT the image caption disappears...

How can I correct this behaviour?

Thank you in advance

#2661071

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I looked at the front end of your site and it's not obvious what is wrong with your implementation (it looks okay to me, but I may be missing what the problem is).

And I don't know exactly what you've done so far.

Could I invite you to set up something similar on a sandbox site where I can see what you are trying to do (and how), and I can propose a solution?

Here is a link you can use to log in to the site: hidden link

There is a page "Grid of Things" with a View to display Thing posts in a grid. You can modify that as required.

#2661079

Hi Nigel, thank you for your reply.

I am sorry for not having being clearer.

I have tried to use the sandbox site but I cannot make the css modifications I do work...

I have made a 2 second clip showing the problem: hidden link

As you will see, the overflow is hidden on 3 sides but visible on the bottom part...

#2661095

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I can't see what it is that you have done to add the hover effect, or how you have set this up more generally.

I created a quick demonstration on Codepen of the CSS that is required for such an effect, which you can see here: hidden link (note, the text is part of the image, so hovering a card expands the image which appears as growing text).

If that doesn't help you with a solution, could I get access to your site to look at what you have done?

Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#2661107

Thank you Nigel,
I am changing the layout since the client has some new requirements that force me to change the way that part is built.

I managed to discover that the image behaves correctly if there is no caption. So the issue has to be something related to it.

In this case anyway, I don't need further support. Thank you very much for your time