Hover effect cropped with parent using Bootstrap

I am trying to use Bootstrap and native CSS to create a hover effect. The problem is that the parent container, the carousel, cuts off my hover effect.

The look I'm going to is something like this (hover over items with long descriptions):

http://www.ebay.com/sch/Other-/26261/i.html?rt=nc&_dmd=2

This is what my attempt looks like:

enter image description here

This is what I am trying to achieve:

enter image description here

Ive tried to override parent overflow elements to no avail.

The freeze effect should:

  • Same size for all images in the carousel
  • Overwrite any content below it

Here is the script: Fiddle

What am I doing wrong?

+4
source share
2 answers

If you are using Bootstrap, why not just use Popover ?:

$('.thumb-hover').popover({ title: "This is a title", content: "This is a test", trigger: 'hover', placement: 'bottom' }); 

Jsfiddle

+2
source

It seems that playing with overflow is impossible, as the plugin already uses it.

You can achieve some interesting results by setting both X and Y overflow to visible: demo (jsfiddle)

 .carousel-container:hover { overflow-y: visible!important; overflow-x: visible!important; } 

However, overflow X destroys the plugin style.

But this doesn’t work at all on google chrome, so my advice is not to use this plugin.


You will get almost the same problem with another plugin, because CSS-x overflow: visible; and overflow-y: hidden; causing a scroll problem

Demo with Bootstrap Carousel (jsfiddle)


Perhaps you should consider using some kind of (home?) JavaScript, as the carousel still requires.

0
source

Source: https://habr.com/ru/post/1435326/


All Articles