F
F
FalseCode2018-10-18 16:51:09
css
FalseCode, 2018-10-18 16:51:09

How to overcome overflow-y: scroll?

Hello. There is such a block
5bc88e721ae5d094386178.png
Here there are product cards that, on hover, show hidden content. Because I position the hidden content absolute (so as not to move the content lower) and because it's all in the slick slider. Then when you hover over the bottom row of cards, the hidden content is not visible. I add a slider wrapper that has overflow: hidden, overflow-y: visible, but in the end it turns out that when you hover over the product card, the entire block has a vertical scroll. As I understood it because of absolute positioning. If you know how to do it humanly, please tell me)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Felicia Mad, 2018-10-23
@FalseCode

As an option, use a similar library on hover drop.js

J
Jupiter Max, 2018-10-18
@vardoLP

You need to wrap each slide in another container and set the bottom padding to the height of the block that is shown in the card. From below, of course, there will be a distance, but as a rule it is not scary. I hope I explained clearly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question