I'm a bit stump trying to get the CSS: not () selector to work for me in a very specific way. I spent a huge amount of time searching and found good resources like a page , but in the end I had to admit defeat. I hope a more enlightened soul can help.
Basically, I want to blur the text, leaving the other bits of the text intact. See below HTML / CSS:
<div class="top-hide">
<p class="reveal">Paragraph 1</p>
<div class="reveal">Paragraph 2</div>
<div class="reveal"><p>Paragraph 3</p></div>
<div><p class="reveal">Paragraph 4</p></div>
<div class="reveal"><p class="reveal">Paragraph 5</p></div>
<p>Paragraph 6</p>
<div>Paragraph 7</div>
<div><p>Paragraph 8</p></div>
</div>
.top-hide :not(.reveal) {
color: transparent;
text-shadow: 0 0 10px black;
}
I would like to show items 1 to 5, while 6 to 8 should be blurred. However, paragraphs 1, 2, and 5 are disclosed, and the rest are blurred. Could you tell me why my CSS is not working and build the right CSS to achieve my goal.
JSFiddle, , .