R
R
rinatoptimus2015-10-18 19:12:01
css
rinatoptimus, 2015-10-18 19:12:01

How to remove twitching of an element on hover?

jsfiddle.net/rinatoptimus/ujx8yumh - red text and mailbox image pop up on hover, but hovering over red text makes it twitchy. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
petyagrill, 2015-10-18
@rinatoptimus

if you want to quickly solve the problem then add to css

.grayscale+p {
      pointer-events:none;
  }

W
wol_fi, 2015-10-18
@wol_fi

You have blocks alpha_wrapper and p - neighbors. And it jerks - because when p approaches, alpha_wrapper loses hoverIn , and when hoverOut starts to work and p goes down, it catches hoverIn again, from here it jumps back and forth. Change the markup so that the block you assign hover to doesn't lose it during the animation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question