K
K
kauzlein2016-06-19 23:18:38
css
kauzlein, 2016-06-19 23:18:38

Why does hover work in chrome when hovering over a hidden part of an image through overflow?

https://jsfiddle.net/u5yam6hb/1/
Used, "long" images hidden through overflow.
The bottom line is that in Chrome animation is triggered when hovering over a hidden part of the image. The problem does not recur in other browsers. In the example, I added one block on top for clarity.
What is it connected with? How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlikDex, 2016-06-19
@kauzlein

.square-items {
    padding: 5px;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    margin: 5px;
    overflow: hidden;
}

Or add:
.square-item {
    position: relative;
}

A
Artem Kayun, 2016-06-19
@Kayun

.square-item {
   pointer-events: none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question