4
I have an element that when making a hover
in it will appear a pseudo-element elsewhere on the screen, however I would like to inspect this pseudo-element when it is visible on the screen.
How do I inspect an element that only appears when the other is with hover
?
Look at this simple example
button {
position: relative;
}
button::after {
content: "";
display: inline-block;
margin-left: 150px;
background-color: red;
position: absolute;
}
button:hover::after {
content: "aqui!";
}
<button>button</button>
I created a GIF with the steps you mentioned, I think it is more didactic than a static image. If you disagree, you can reverse the editing smoothly :D
– Woss
@Andersoncarloswoss So by gif you already deserve half the score :D
– Isac
That’s right, thank you!
– hugocsl
@Andersoncarloswoss excellent edition! It became very good and didactic for all consult vlw!
– hugocsl