A
A
alexeeey_kuznetsov2019-04-18 23:43:39
css
alexeeey_kuznetsov, 2019-04-18 23:43:39

How to display hidden element via z-index: -1 inside slick slider when hovering over slider cell?

The buy button on the product (slider cell) appears on hover.
5cb8e08c4c4da745827056.png
I just added absolute positioning relative to the cell and a high z-index to it. But since the slider has overflow: hidden, it is not visible under the slider. Adding overflow-y: visible will scroll vertically to this button.
I tried it differently - I changed it to display: block on hover, but there are jumps under the goods, due to the addition of a block with a button.
Is it possible to make the button fully visible on hover, without vertical scrolling?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roweb, 2019-04-19
@Roweb

Give the container a bottom padding or don't use absolute positioning

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question